[U-Boot] [PATCH 09/22] board/cogent/flash.c: Fix GCC 4.6 buiild warning
Wolfgang Denk
wd at denx.de
Sat Nov 5 16:13:06 CET 2011
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 at denx.de>
Cc: Murray Jensen <Murray.Jensen at csiro.au>
---
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 e6c85b6..ec3f94d 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) {
--
1.7.6.4
More information about the U-Boot
mailing list