From: Wolfgang Denk Date: Sat, 5 Nov 2011 05:13:06 +0000 (+0000) Subject: board/cogent/flash.c: Fix GCC 4.6 buiild warning X-Git-Tag: v2011.12-rc1~244 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=31a167cfa85c35f28606d18764422266f68dfca0;p=u-boot board/cogent/flash.c: Fix GCC 4.6 buiild warning Fix: flash.c: In function 'flash_init': flash.c:295:16: warning: variable 'fip' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk Cc: Murray Jensen --- diff --git a/board/cogent/flash.c b/board/cogent/flash.c index e6c85b6d9a..ec3f94d2d5 100644 --- a/board/cogent/flash.c +++ b/board/cogent/flash.c @@ -23,6 +23,7 @@ #include #include +#include flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */ @@ -292,7 +293,7 @@ flash_init(void) { unsigned long total; int i; - flash_info_t *fip; + __maybe_unused flash_info_t *fip; /* Init: no FLASHes known */ for (i=0; i