Fix warnings in js-ir/runtime/jsIntrinsics.kt
Suppress "UNUSED_PARAMETER" to fix compilation warnings. Also suppress "unused" to make the file less yellow in the IDE. Also enable `-Werror`, unless Gradle property `kotlin.build.disable.werror` is set to true.
This commit is contained in:
@@ -150,8 +150,11 @@ tasks.withType<KotlinCompile<*>>().configureEach {
|
||||
|
||||
val compileKotlinJs by tasks.existing(KotlinCompile::class) {
|
||||
kotlinOptions.freeCompilerArgs += "-Xir-module-name=kotlin"
|
||||
}
|
||||
|
||||
if (!kotlinBuildProperties.disableWerror) {
|
||||
kotlinOptions.allWarningsAsErrors = true
|
||||
}
|
||||
}
|
||||
|
||||
val compileTestKotlinJs by tasks.existing(KotlinCompile::class) {
|
||||
val sources: FileCollection = kotlin.sourceSets["commonTest"].kotlin
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
@file:Suppress("NON_MEMBER_FUNCTION_NO_BODY")
|
||||
@file:Suppress("NON_MEMBER_FUNCTION_NO_BODY", "UNUSED_PARAMETER", "unused")
|
||||
|
||||
package kotlin.js
|
||||
|
||||
|
||||
Reference in New Issue
Block a user