diff options
author | Wolfgang Denk <wd@denx.de> | 2011-11-05 05:13:06 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-11-07 22:47:48 +0100 |
commit | 31a167cfa85c35f28606d18764422266f68dfca0 (patch) | |
tree | 09ee6462b26bb1f79c000357a5eeec772f9a459d /board/cogent | |
parent | 69545df0e67c33d432765e5bdee1c0cf613829bf (diff) |
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 <wd@denx.de>
Cc: Murray Jensen <Murray.Jensen@csiro.au>
Diffstat (limited to 'board/cogent')
-rw-r--r-- | board/cogent/flash.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/board/cogent/flash.c b/board/cogent/flash.c index e6c85b6d9a5..ec3f94d2d5f 100644 --- a/board/cogent/flash.c +++ b/board/cogent/flash.c @@ -23,6 +23,7 @@ #include <common.h> #include <board/cogent/flash.h> +#include <linux/compiler.h> 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<CONFIG_SYS_MAX_FLASH_BANKS; ++i) { |