kbuild: Disable -Wunused-but-set-variable for gcc 4.6.0
authorDave Jones <davej@redhat.com>
Thu, 21 Apr 2011 21:28:13 +0000 (17:28 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:35:54 +0000 (15:35 -0400)
commit614c50ec7dfa104010a950c41984d021d8bcea88
tree201c04fae3a47675951bd712b1e3d732a1e018ae
parent51fce51d3a8a1e5a0082b62fbf5d1c46836bd577
kbuild: Disable -Wunused-but-set-variable for gcc 4.6.0

commit af0e5d565d2fffcd97d1e2d89669d627cc04e8b8 upstream.

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>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Makefile
scripts/Makefile.build