diff options
author | Dave Jones <davej@redhat.com> | 2011-04-21 17:28:13 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2011-04-29 10:58:14 -0400 |
commit | af0e5d565d2fffcd97d1e2d89669d627cc04e8b8 (patch) | |
tree | 7b2ca1890e85b295215cc4af04155f095f69928a /scripts | |
parent | f07726048d599acd6bac438e304645a78db753c0 (diff) |
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
Signed-off-by: Dave Jones <davej@redhat.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Tested-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.build | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/Makefile.build b/scripts/Makefile.build index 9c0c48127946..9fb19c0fbf8c 100644 --- a/scripts/Makefile.build +++ b/scripts/Makefile.build | |||
@@ -66,6 +66,7 @@ warning-1 += -Wmissing-format-attribute | |||
66 | warning-1 += -Wmissing-prototypes | 66 | warning-1 += -Wmissing-prototypes |
67 | warning-1 += -Wold-style-definition | 67 | warning-1 += -Wold-style-definition |
68 | warning-1 += $(call cc-option, -Wmissing-include-dirs) | 68 | warning-1 += $(call cc-option, -Wmissing-include-dirs) |
69 | warning-1 += $(call cc-option, -Wunused-but-set-variable) | ||
69 | 70 | ||
70 | warning-2 := -Waggregate-return | 71 | warning-2 := -Waggregate-return |
71 | warning-2 += -Wcast-align | 72 | warning-2 += -Wcast-align |