上游 · Kotlin compiler options · Common
kotlinc -Xrepl
-Xreturn-value-checker
Configure how the compiler reports ignored results :
disable : disables the unused return value checker (default).
check : enables the checker and reports warnings for ignored results from marked functions.
full : enables the checker, treats all functions in your project as marked, and reports warnings for ignored results.
Warning management
-nowarn
Suppress all warnings during compilation.
-Werror