]> git.sur5r.net Git - u-boot/commitdiff
board/siemens/SCM/scm.c: Fix GCC 4.6 build warning
authorWolfgang Denk <wd@denx.de>
Sat, 5 Nov 2011 05:13:19 +0000 (05:13 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 7 Nov 2011 21:49:51 +0000 (22:49 +0100)
Fix:
scm.c: In function 'config_scoh_cs':
scm.c:400:16: warning: variable 'tmp' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Wolfgang Denk <wd@denx.de>
board/siemens/SCM/scm.c

index 926e491271b8d8006213666a0aa447c3a8a40d0b..461b56e3ff8b94eaadc8dd4dd733e4bb6fcc8661 100644 (file)
@@ -24,6 +24,7 @@
 #include <common.h>
 #include <ioports.h>
 #include <mpc8260.h>
+#include <linux/compiler.h>
 
 #include "scm.h"
 
@@ -397,7 +398,7 @@ static void config_scoh_cs (void)
        volatile immap_t *immr = (immap_t *) CONFIG_SYS_IMMR;
        volatile memctl8260_t *memctl = &immr->im_memctl;
        volatile can_reg_t *can = (volatile can_reg_t *) CONFIG_SYS_CAN0_BASE;
-       volatile uint tmp, i;
+       __maybe_unused volatile uint tmp, i;
 
        /* Initialize OR3 / BR3 for CAN Bus Controller 0 */
        memctl->memc_or3 = CONFIG_SYS_CAN0_OR3;