kbuild: Disable -Wunused-but-set-variable for gcc 4.6.0
commitaf0e5d565d2fffcd97d1e2d89669d627cc04e8b8
authorDave Jones <davej@redhat.com>
Thu, 21 Apr 2011 21:28:13 +0000 (21 17:28 -0400)
committerMichal Marek <mmarek@suse.cz>
Fri, 29 Apr 2011 14:58:14 +0000 (29 16:58 +0200)
tree7b2ca1890e85b295215cc4af04155f095f69928a
parentf07726048d599acd6bac438e304645a78db753c0
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>
Makefile
scripts/Makefile.build