diff options
| author | Wolfgang Denk <wd@denx.de> | 2011-11-05 05:13:08 +0000 | 
|---|---|---|
| committer | Wolfgang Denk <wd@denx.de> | 2011-11-07 22:47:55 +0100 | 
| commit | 5a5f34a1e0c0957d6f776f45745248527b5b1728 (patch) | |
| tree | efd65d8e2665cc68cfae74b8f48137f7da48a55e /board/gw8260/flash.c | |
| parent | 6cfdd30e3959687397dad7a1fe82e08fcda15575 (diff) | |
| download | olio-uboot-2014.01-5a5f34a1e0c0957d6f776f45745248527b5b1728.tar.xz olio-uboot-2014.01-5a5f34a1e0c0957d6f776f45745248527b5b1728.zip | |
board/gw8260/flash.c: Fix GCC 4.6 build warning
Fix:
flash.c: In function 'flash_init':
flash.c:81:16: warning: variable 'size' set but not used
[-Wunused-but-set-variable]
Signed-off-by: Wolfgang Denk <wd@denx.de>
Cc: Oliver Brown <obrown@adventnetworks.com>
Diffstat (limited to 'board/gw8260/flash.c')
| -rw-r--r-- | board/gw8260/flash.c | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/board/gw8260/flash.c b/board/gw8260/flash.c index c1c26ea1b..fb29659e2 100644 --- a/board/gw8260/flash.c +++ b/board/gw8260/flash.c @@ -78,7 +78,6 @@ static int write_word (flash_info_t *info, ulong dest, ulong data);   */  unsigned long flash_init(void)  { -	unsigned long size;  	int i;  	/* Init: no FLASHes known */ @@ -86,7 +85,7 @@ unsigned long flash_init(void)  		flash_info[i].flash_id = FLASH_UNKNOWN;  	/* for now, only support the 4 MB Flash SIMM */ -	size = flash_get_size((vu_long *) CONFIG_SYS_FLASH0_BASE, +	(void)flash_get_size((vu_long *) CONFIG_SYS_FLASH0_BASE,  			      &flash_info[0]);  	/*  	 * protect monitor and environment sectors |