From: Wolfgang Denk Date: Sat, 5 Nov 2011 05:13:09 +0000 (+0000) Subject: board/ep82xxm/ep82xxm.c: Fix GCC 4.6 build warning X-Git-Tag: v2011.12-rc1~241 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=419abb6af6e627196d68172dbb4c681fdac041e6;p=u-boot board/ep82xxm/ep82xxm.c: Fix GCC 4.6 build warning Fix: ep82xxm.c: In function 'initdram': ep82xxm.c:233:16: warning: variable 'ramtmp' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk --- diff --git a/board/ep82xxm/ep82xxm.c b/board/ep82xxm/ep82xxm.c index c1d6e9100b..182cabca14 100644 --- a/board/ep82xxm/ep82xxm.c +++ b/board/ep82xxm/ep82xxm.c @@ -31,6 +31,7 @@ #include #endif #include +#include /* * I/O Port configuration table @@ -230,8 +231,8 @@ phys_size_t initdram(int board_type) uint psdmr = CONFIG_SYS_PSDMR; int i; - unsigned char ramtmp; unsigned char *ramptr1 = (unsigned char *)0x00000110; + __maybe_unused unsigned char ramtmp; memctl->memc_mptpr = CONFIG_SYS_MPTPR;