kbuild: Disable -Wunused-but-set-variable for gcc 4.6.0
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / Makefile
index e509cc70496829d88359572bdc3894ee63a43f00..4527dc23a7243a7033a0d82f16b3485e45d90dcc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -567,6 +567,10 @@ ifndef CONFIG_CC_STACKPROTECTOR
 KBUILD_CFLAGS += $(call cc-option, -fno-stack-protector)
 endif
 
+# This warning generated too much noise in a regular build.
+# Use make W=1 to enable this warning (see scripts/Makefile.build)
+KBUILD_CFLAGS += $(call cc-option, -Wno-unused-but-set-variable)
+
 ifdef CONFIG_FRAME_POINTER
 KBUILD_CFLAGS  += -fno-omit-frame-pointer -fno-optimize-sibling-calls
 else