Fix/suppress some warnings
(cherry picked from commit d8a43c216925b3a9e1475b786978436835a57927)
This commit is contained in:
committed by
TeamCityServer
parent
c5249ac714
commit
c56f719dcc
@@ -139,5 +139,7 @@ fun JsValue.setter(property: String, string: String) {
|
|||||||
|
|
||||||
object ArenaManager {
|
object ArenaManager {
|
||||||
val globalArena = allocateArena()
|
val globalArena = allocateArena()
|
||||||
|
|
||||||
|
@Suppress("VARIABLE_IN_SINGLETON_WITHOUT_THREAD_LOCAL")
|
||||||
var currentArena = globalArena
|
var currentArena = globalArena
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach
|
|||||||
freeCompilerArgs = listOf("-Xuse-experimental=kotlin.ExperimentalUnsignedTypes",
|
freeCompilerArgs = listOf("-Xuse-experimental=kotlin.ExperimentalUnsignedTypes",
|
||||||
"-Xuse-experimental=kotlin.Experimental",
|
"-Xuse-experimental=kotlin.Experimental",
|
||||||
"-Xopt-in=kotlin.RequiresOptIn",
|
"-Xopt-in=kotlin.RequiresOptIn",
|
||||||
"-XXLanguage:+InlineClasses",
|
"-Xinline-classes",
|
||||||
"-Xskip-prerelease-check")
|
"-Xskip-prerelease-check")
|
||||||
allWarningsAsErrors = true
|
allWarningsAsErrors = true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ external fun CPointer<*>.getRawValue(): NativePtr
|
|||||||
|
|
||||||
internal fun CPointer<*>.cPointerToString() = "CPointer(raw=$rawValue)"
|
internal fun CPointer<*>.cPointerToString() = "CPointer(raw=$rawValue)"
|
||||||
|
|
||||||
|
@Suppress("FINAL_UPPER_BOUND")
|
||||||
public class Vector128VarOf<T : Vector128>(rawPtr: NativePtr) : CVariable(rawPtr) {
|
public class Vector128VarOf<T : Vector128>(rawPtr: NativePtr) : CVariable(rawPtr) {
|
||||||
@Deprecated("Use sizeOf<T>() or alignOf<T>() instead.")
|
@Deprecated("Use sizeOf<T>() or alignOf<T>() instead.")
|
||||||
@Suppress("DEPRECATION")
|
@Suppress("DEPRECATION")
|
||||||
@@ -66,6 +67,7 @@ public class Vector128VarOf<T : Vector128>(rawPtr: NativePtr) : CVariable(rawPtr
|
|||||||
|
|
||||||
public typealias Vector128Var = Vector128VarOf<Vector128>
|
public typealias Vector128Var = Vector128VarOf<Vector128>
|
||||||
|
|
||||||
|
@Suppress("FINAL_UPPER_BOUND", "UNCHECKED_CAST")
|
||||||
public var <T : Vector128> Vector128VarOf<T>.value: T
|
public var <T : Vector128> Vector128VarOf<T>.value: T
|
||||||
get() = nativeMemUtils.getVector(this) as T
|
get() = nativeMemUtils.getVector(this) as T
|
||||||
set(value) = nativeMemUtils.putVector(this, value)
|
set(value) = nativeMemUtils.putVector(this, value)
|
||||||
|
|||||||
@@ -252,7 +252,7 @@ targetList.each { target ->
|
|||||||
def testCommon = project(":kotlin-test:kotlin-test-common").files("src/main/kotlin").files
|
def testCommon = project(":kotlin-test:kotlin-test-common").files("src/main/kotlin").files
|
||||||
args = [*konanArgs,
|
args = [*konanArgs,
|
||||||
'-output', project(':kotlin-native:runtime').file("build/${target}Stdlib"),
|
'-output', project(':kotlin-native:runtime').file("build/${target}Stdlib"),
|
||||||
'-produce', 'library', '-module-name', 'stdlib', '-XXLanguage:+AllowContractsForCustomFunctions',
|
'-produce', 'library', '-module-name', 'stdlib',
|
||||||
'-Xmulti-platform', '-Xopt-in=kotlin.RequiresOptIn', '-Xinline-classes',
|
'-Xmulti-platform', '-Xopt-in=kotlin.RequiresOptIn', '-Xinline-classes',
|
||||||
'-Xopt-in=kotlin.contracts.ExperimentalContracts',
|
'-Xopt-in=kotlin.contracts.ExperimentalContracts',
|
||||||
'-Xopt-in=kotlin.ExperimentalMultiplatform',
|
'-Xopt-in=kotlin.ExperimentalMultiplatform',
|
||||||
@@ -358,4 +358,4 @@ publishing {
|
|||||||
from components.java
|
from components.java
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ targetList.each { target ->
|
|||||||
jvmArgs = konanJvmArgs
|
jvmArgs = konanJvmArgs
|
||||||
args = [*konanArgs,
|
args = [*konanArgs,
|
||||||
'-output', outputFile,
|
'-output', outputFile,
|
||||||
'-produce', 'library', '-module-name', moduleName, '-XXLanguage:+AllowContractsForCustomFunctions',
|
'-produce', 'library', '-module-name', moduleName,
|
||||||
'-Xmulti-platform', '-Xopt-in=kotlinx.cli.ExperimentalCli',
|
'-Xmulti-platform', '-Xopt-in=kotlinx.cli.ExperimentalCli',
|
||||||
'-Xopt-in=kotlin.ExperimentalMultiplatform',
|
'-Xopt-in=kotlin.ExperimentalMultiplatform',
|
||||||
'-Xallow-result-return-type', '-Werror', '-Xopt-in=kotlin.RequiresOptIn',
|
'-Xallow-result-return-type', '-Werror', '-Xopt-in=kotlin.RequiresOptIn',
|
||||||
|
|||||||
Reference in New Issue
Block a user