turn off noisy warning with gcc-4.6
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 8 Jun 2011 19:04:29 +0000 (21:04 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Wed, 8 Jun 2011 19:04:29 +0000 (21:04 +0200)
kernel-2.6.spec
linux-2.6-10001-gcc-4.6-warnoff.patch [new file with mode: 0644]

index e24c287..a68db4c 100644 (file)
@@ -683,6 +683,7 @@ Patch19: linux-2.6-660-nmi-watchdog-default.patch
 Patch20: linux-2.6-680-htb-hysteresis-tso.patch
 
 Patch10000: linux-2.6-10000-gcc-4.5.patch
+Patch10001: linux-2.6-10001-gcc-4.6-warnoff.patch
 # empty final patch file to facilitate testing of kernel patches
 Patch999999: linux-kernel-test.patch
 
@@ -996,6 +997,7 @@ ApplyPatch linux-2.6-650-hangcheck-reboot.patch
 ApplyPatch linux-2.6-660-nmi-watchdog-default.patch
 ApplyPatch linux-2.6-680-htb-hysteresis-tso.patch
 ApplyPatch linux-2.6-10000-gcc-4.5.patch
+ApplyPatch linux-2.6-10001-gcc-4.6-warnoff.patch
 #### Planet-Lab ####
 
 ApplyOptionalPatch linux-kernel-test.patch
diff --git a/linux-2.6-10001-gcc-4.6-warnoff.patch b/linux-2.6-10001-gcc-4.6-warnoff.patch
new file mode 100644 (file)
index 0000000..5493f36
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/Makefile 2011-06-08 20:54:07.000000000 +0200
++++ b/Makefile 2011-06-08 20:53:19.000000000 +0200
+@@ -605,6 +605,9 @@
+ # conserve stack if available
+ KBUILD_CFLAGS   += $(call cc-option,-fconserve-stack)
++# turn off the noise with gcc-4.6
++KBUILD_CFLAGS += $(call cc-option, -Wno-unused-but-set-variable)
++
+ # Add user supplied CPPFLAGS, AFLAGS and CFLAGS as the last assignments
+ # But warn user when we do so
+ warn-assign = \