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:
Alexander Udalov
2021-06-27 22:41:03 +02:00
parent eeffa49cd9
commit f430d569d0
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -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