api / org.gradle.api.tasks.compile / CompileOptions / setWarnings

setWarnings

open fun setWarnings(warnings: Boolean): Unit

Sets whether to log warning messages. The default is true.