From: Wolfgang Denk Date: Sat, 5 Nov 2011 05:13:19 +0000 (+0000) Subject: board/siemens/SCM/scm.c: Fix GCC 4.6 build warning X-Git-Tag: v2011.12-rc1~231 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7346e385bc2ae30fea75ef00bd56062fefeab2fa;p=oweals%2Fu-boot.git board/siemens/SCM/scm.c: Fix GCC 4.6 build warning 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 --- diff --git a/board/siemens/SCM/scm.c b/board/siemens/SCM/scm.c index 926e491271..461b56e3ff 100644 --- a/board/siemens/SCM/scm.c +++ b/board/siemens/SCM/scm.c @@ -24,6 +24,7 @@ #include #include #include +#include #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;