silence an annoying x86 warning
authorFlorian Fainelli <florian@openwrt.org>
Sun, 15 Apr 2012 18:53:39 +0000 (18:53 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 15 Apr 2012 18:53:39 +0000 (18:53 +0000)
SVN-Revision: 31293

target/linux/generic/patches-2.6.32/033-x86_unused_variables.patch [new file with mode: 0644]

diff --git a/target/linux/generic/patches-2.6.32/033-x86_unused_variables.patch b/target/linux/generic/patches-2.6.32/033-x86_unused_variables.patch
new file mode 100644 (file)
index 0000000..dd8e147
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/arch/x86/include/asm/percpu.h
++++ b/arch/x86/include/asm/percpu.h
+@@ -76,7 +76,7 @@ extern void __bad_percpu_size(void);
+ do {                                                  \
+       typedef typeof(var) T__;                        \
+       if (0) {                                        \
+-              T__ tmp__;                              \
++              T__ tmp__ __maybe_unused;               \
+               tmp__ = (val);                          \
+       }                                               \
+       switch (sizeof(var)) {                          \