]> git.sur5r.net Git - u-boot/commitdiff
board/cogent/flash.c: Fix GCC 4.6 buiild warning
authorWolfgang Denk <wd@denx.de>
Sat, 5 Nov 2011 05:13:06 +0000 (05:13 +0000)
committerWolfgang Denk <wd@denx.de>
Mon, 7 Nov 2011 21:47:48 +0000 (22:47 +0100)
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>
board/cogent/flash.c

index e6c85b6d9a56a332b2906ed20be2b905660a56e7..ec3f94d2d5f9a211c650df45cb4fb2022e5f339d 100644 (file)
@@ -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) {