Skip to content

Commit 4623cfa

Browse files
authored
Opt in to using experimental Kotlin Native APIs to suppress build warnings (#8885)
- fixes #8846
1 parent 9c2c56d commit 4623cfa

File tree

1 file changed

+3
-0
lines changed
  • kotlin/flatbuffers-kotlin/src/nativeMain/kotlin/com/google/flatbuffers/kotlin

1 file changed

+3
-0
lines changed

kotlin/flatbuffers-kotlin/src/nativeMain/kotlin/com/google/flatbuffers/kotlin/ByteArray.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
* limitations under the License.
1515
*/
1616
@file:Suppress("NOTHING_TO_INLINE")
17+
@file:OptIn(ExperimentalNativeApi::class)
1718

1819
package com.google.flatbuffers.kotlin
1920

21+
import kotlin.experimental.ExperimentalNativeApi
22+
2023
/**
2124
* This implementation assumes that of native macOSX64 the byte order of the implementation is
2225
* Little Endian.

0 commit comments

Comments
 (0)