native
diff --git a/kotlin-native/runtime/build.gradle.kts b/kotlin-native/runtime/build.gradle.kts index 6fd96a1..fc1de75 100644 --- a/kotlin-native/runtime/build.gradle.kts +++ b/kotlin-native/runtime/build.gradle.kts
@@ -509,7 +509,7 @@ // See allowReturnValueCheckerButNotReport() in libraries/stdlib/build.gradle.kts: "-Xreturn-value-checker=check", - "-Xwarning-level=RETURN_VALUE_NOT_USED:disabled,ACTUAL_ANNOTATIONS_NOT_MATCH_EXPECT:disabled", + "-Xwarning-level=RETURN_VALUE_NOT_USED:disabled", "-Xfragment-refines=nativeMain:nativeWasm,nativeMain:common,nativeWasm:common,nativeWasm:commonNonJvm,commonNonJvm:common", "-Xmanifest-native-targets=${platformManager.targetValues.joinToString(separator = ",") { it.visibleName }}",
diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/text/StringBuilderNative.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/text/StringBuilderNative.kt index 096a205..7a4d909 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/text/StringBuilderNative.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/text/StringBuilderNative.kt
@@ -9,31 +9,37 @@ import kotlin.native.internal.GCUnsafeCall /** Appends [value] to this [StringBuilder], followed by a line feed character (`\n`). */ +@IgnorableReturnValue @SinceKotlin("1.4") @kotlin.internal.InlineOnly public actual inline fun StringBuilder.appendLine(value: Byte): StringBuilder = append(value).appendLine() /** Appends [value] to this [StringBuilder], followed by a line feed character (`\n`). */ +@IgnorableReturnValue @SinceKotlin("1.4") @kotlin.internal.InlineOnly public actual inline fun StringBuilder.appendLine(value: Short): StringBuilder = append(value).appendLine() /** Appends [value] to this [StringBuilder], followed by a line feed character (`\n`). */ +@IgnorableReturnValue @SinceKotlin("1.4") @kotlin.internal.InlineOnly public actual inline fun StringBuilder.appendLine(value: Int): StringBuilder = append(value).appendLine() /** Appends [value] to this [StringBuilder], followed by a line feed character (`\n`). */ +@IgnorableReturnValue @SinceKotlin("1.4") @kotlin.internal.InlineOnly public actual inline fun StringBuilder.appendLine(value: Long): StringBuilder = append(value).appendLine() /** Appends [value] to this [StringBuilder], followed by a line feed character (`\n`). */ +@IgnorableReturnValue @SinceKotlin("1.4") @kotlin.internal.InlineOnly public actual inline fun StringBuilder.appendLine(value: Float): StringBuilder = append(value).appendLine() /** Appends [value] to this [StringBuilder], followed by a line feed character (`\n`). */ +@IgnorableReturnValue @SinceKotlin("1.4") @kotlin.internal.InlineOnly public actual inline fun StringBuilder.appendLine(value: Double): StringBuilder = append(value).appendLine() @@ -85,4 +91,4 @@ @GCUnsafeCall("Kotlin_StringBuilder_insertInt") @Escapes.Nothing -internal actual external fun insertInt(array: CharArray, start: Int, value: Int): Int \ No newline at end of file +internal actual external fun insertInt(array: CharArray, start: Int, value: Int): Int
diff --git a/kotlin-native/runtime/src/main/kotlin/kotlin/text/Strings.kt b/kotlin-native/runtime/src/main/kotlin/kotlin/text/Strings.kt index af67391..4567cbe 100644 --- a/kotlin-native/runtime/src/main/kotlin/kotlin/text/Strings.kt +++ b/kotlin-native/runtime/src/main/kotlin/kotlin/text/Strings.kt
@@ -449,6 +449,7 @@ * @throws IndexOutOfBoundsException when the subrange doesn't fit into the [destination] array starting at the specified [destinationOffset], * or when that index is out of the [destination] array indices range. */ +@IgnorableReturnValue @SinceKotlin("2.0") @Suppress("ACTUAL_FUNCTION_WITH_DEFAULT_ARGUMENTS") public actual fun String.toCharArray(