silence an annoying x86 warning

SVN-Revision: 31293
lede-17.01
Florian Fainelli 2012-04-15 18:53:39 +00:00
parent a0bbc34816
commit f2f5820d13
1 changed files with 11 additions and 0 deletions

View File

@ -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)) { \