From: Wolfgang Denk Date: Fri, 4 Nov 2011 15:55:22 +0000 (+0000) Subject: drivers/pcmcia/mpc8xx_pcmcia.c: Fix GCC 4.6 build warning X-Git-Tag: v2011.12-rc1~291 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=045a96727bd1eac988b979304ba95e4f78d09487;p=u-boot drivers/pcmcia/mpc8xx_pcmcia.c: Fix GCC 4.6 build warning Fix: mpc8xx_pcmcia.c: In function 'pcmcia_on': mpc8xx_pcmcia.c:76:8: warning: variable 'slotbit' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk --- diff --git a/drivers/pcmcia/mpc8xx_pcmcia.c b/drivers/pcmcia/mpc8xx_pcmcia.c index 74a50f1c74..3732583838 100644 --- a/drivers/pcmcia/mpc8xx_pcmcia.c +++ b/drivers/pcmcia/mpc8xx_pcmcia.c @@ -1,6 +1,7 @@ #include #include #include +#include #undef CONFIG_PCMCIA @@ -73,8 +74,8 @@ int pcmcia_on (void) { u_long reg, base; pcmcia_win_t *win; - u_int slotbit; u_int rc, slot; + __maybe_unused u_int slotbit; int i; debug ("Enable PCMCIA " PCMCIA_SLOT_MSG "\n");