kbuild: Disable -Wunused-but-set-variable for gcc 4.6.0
[linux-2.6.git] / scripts / Makefile.build
index 9c0c481..9fb19c0 100644 (file)
@@ -66,6 +66,7 @@ warning-1 += -Wmissing-format-attribute
 warning-1 += -Wmissing-prototypes
 warning-1 += -Wold-style-definition
 warning-1 += $(call cc-option, -Wmissing-include-dirs)
+warning-1 += $(call cc-option, -Wunused-but-set-variable)
 
 warning-2 := -Waggregate-return
 warning-2 += -Wcast-align