]> git.sur5r.net Git - u-boot/commitdiff
board/funkwerk/vovpn-gw/vovpn-gw.c: Fix GCC 4.6 build warning
authorWolfgang Denk <wd@denx.de>
Sat, 5 Nov 2011 05:13:18 +0000 (05:13 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 7 Nov 2011 21:49:48 +0000 (22:49 +0100)
Fix:
vovpn-gw.c: In function 'misc_init_r':
vovpn-gw.c:266:16: warning: variable 'temp' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
board/funkwerk/vovpn-gw/vovpn-gw.c

index a4bfbc978023d384528109feab5b87b883c3735d..57bd21fc295b550a7b775a2a8d314760ace0e665 100644 (file)
@@ -25,6 +25,7 @@
 #include <mpc8260.h>
 #include <asm/m8260_pci.h>
 #include <miiphy.h>
+#include <linux/compiler.h>
 
 #include "m88e6060.h"
 
@@ -263,7 +264,7 @@ int board_early_init_f (void)
 int misc_init_r (void)
 {
        volatile ioport_t *iop;
-       unsigned char temp;
+       __maybe_unused unsigned char temp;
 #if 0
        /* DUMP UPMA RAM */
        volatile immap_t *immap;