History

kbuild: Disable -Wunused-but-set-variable for gcc 4.6.0

Disable the new -Wunused-but-set-variable that was added in gcc 4.6.0 It produces more false positives than useful warnings. This can still be enabled using W=1

Dave Jones committed 15 years ago

Commit af0e5d51 parent f0772602 files · +5 −0Browse files

Showing the changes to scripts (1 of 2 files). Show all

Unified · Split

scripts/Makefile.build+1−0
@@ -66,6 +66,7 @@ warning-1 += -Wmissing-format-attribute · 65 unmodified lines
6666 warning-1 += -Wmissing-prototypes
6767 warning-1 += -Wold-style-definition
6868 warning-1 += $(call cc-option, -Wmissing-include-dirs)
69+warning-1 += $(call cc-option, -Wunused-but-set-variable)
6970
7071 warning-2 := -Waggregate-return
7172 warning-2 += -Wcast-align