summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-11-05 05:13:19 +0000
committerWolfgang Denk <wd@denx.de>2011-11-07 22:49:51 +0100
commit7346e385bc2ae30fea75ef00bd56062fefeab2fa (patch)
tree4a012507bd4ef679908493a143f470e87f0becef
parent7aeda21a172a3c2ffaa7376f5945368d4c67b7cc (diff)
downloadu-boot-imx-7346e385bc2ae30fea75ef00bd56062fefeab2fa.zip
u-boot-imx-7346e385bc2ae30fea75ef00bd56062fefeab2fa.tar.gz
u-boot-imx-7346e385bc2ae30fea75ef00bd56062fefeab2fa.tar.bz2
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 <wd@denx.de>
-rw-r--r--board/siemens/SCM/scm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/siemens/SCM/scm.c b/board/siemens/SCM/scm.c
index 926e491..461b56e 100644
--- a/board/siemens/SCM/scm.c
+++ b/board/siemens/SCM/scm.c
@@ -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;