jdemeulenaere
07/21/2026, 5:55 PMkotlinc (using Gradle DSL or compiler flag) to fail the build on unused variables/parameters/private functions (i.e. code that is 100% dead)? I only found allWarningsAsError but I don't want to make all warnings fail the buildYoussef Shoaib [MOD]
07/21/2026, 6:36 PMdmitriy.novozhilov
07/22/2026, 6:23 AMUNUSED_EXPRESSION, UNUSED_ANONYMOUS_PARAMETER and UNUSED_LAMBDA_EXPRESSION (these are names of diagnostics in the compiler suitable for -Xwarning-level CLI argument).
All other warnings about unused declarations come from IDE, not the compiler.