File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,7 @@ tasks.withType(KotlinCompilationTask::class).configureEach {
33
33
null -> true // Werror is enabled by default
34
34
else -> throw GradleException (" Invalid kotlin_Werror_override value. Use 'enable' or 'disable'" )
35
35
}
36
-
37
36
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
- }
45
37
}
46
38
}
47
39
}
@@ -58,4 +50,4 @@ tasks.withType<KotlinCompilationTask<*>>().configureEach {
58
50
logger.info(" Added Kotlin compiler flags: ${compilerOptions.freeCompilerArgs.get().joinToString(" , " )} " )
59
51
logger.info(" allWarningsAsErrors=${compilerOptions.allWarningsAsErrors.get()} " )
60
52
}
61
- }
53
+ }
You can’t perform that action at this time.
0 commit comments