From 0f8e1b7bde2c26e9cdc4893cded3e86bc7216e61 Mon Sep 17 00:00:00 2001 From: souma987 Date: Sat, 27 Dec 2025 23:33:11 +0900 Subject: [PATCH] Opt in to using experimental Kotlin Native APIs to suppress build warnings - fixes #8846 --- .../kotlin/com/google/flatbuffers/kotlin/ByteArray.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kotlin/flatbuffers-kotlin/src/nativeMain/kotlin/com/google/flatbuffers/kotlin/ByteArray.kt b/kotlin/flatbuffers-kotlin/src/nativeMain/kotlin/com/google/flatbuffers/kotlin/ByteArray.kt index 21cc45af4de..4069b47928a 100644 --- a/kotlin/flatbuffers-kotlin/src/nativeMain/kotlin/com/google/flatbuffers/kotlin/ByteArray.kt +++ b/kotlin/flatbuffers-kotlin/src/nativeMain/kotlin/com/google/flatbuffers/kotlin/ByteArray.kt @@ -14,9 +14,12 @@ * limitations under the License. */ @file:Suppress("NOTHING_TO_INLINE") +@file:OptIn(ExperimentalNativeApi::class) package com.google.flatbuffers.kotlin +import kotlin.experimental.ExperimentalNativeApi + /** * This implementation assumes that of native macOSX64 the byte order of the implementation is * Little Endian.