Skip to content

Commit 63cb9cf

Browse files
[KUP] Disable opt-in Kotlin compiler warnings (#3049)
It was decided to deprecate and phase out the concept (see KT-77721).
1 parent 6a0b3f8 commit 63cb9cf

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

buildSrc/src/main/kotlin/global-compiler-options.gradle.kts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,7 @@ tasks.withType(KotlinCompilationTask::class).configureEach {
3333
null -> true // Werror is enabled by default
3434
else -> throw GradleException("Invalid kotlin_Werror_override value. Use 'enable' or 'disable'")
3535
}
36-
3736
allWarningsAsErrors = werrorEnabled
38-
// Add extra compiler options when -Werror is disabled
39-
if (!werrorEnabled) {
40-
freeCompilerArgs.addAll(
41-
"-Wextra",
42-
"-Xuse-fir-experimental-checkers"
43-
)
44-
}
4537
}
4638
}
4739
}
@@ -58,4 +50,4 @@ tasks.withType<KotlinCompilationTask<*>>().configureEach {
5850
logger.info("Added Kotlin compiler flags: ${compilerOptions.freeCompilerArgs.get().joinToString(", ")}")
5951
logger.info("allWarningsAsErrors=${compilerOptions.allWarningsAsErrors.get()}")
6052
}
61-
}
53+
}

0 commit comments

Comments
 (0)