kbuild: always enable -Wunused-const-variable
The last such warnings are fixed now, so the option can be enabled by default.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn
index 24d29e4..a534aba 100644
--- a/scripts/Makefile.extrawarn
+++ b/scripts/Makefile.extrawarn
@@ -96,7 +96,6 @@
# Some diagnostics enabled by default are noisy.
# Suppress them by using -Wno... except for W=1.
KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable)
-KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable)
KBUILD_CFLAGS += $(call cc-disable-warning, packed-not-aligned)
KBUILD_CFLAGS += $(call cc-disable-warning, format-overflow)
ifdef CONFIG_CC_IS_GCC