From: Wolfgang Denk Date: Wed, 7 Dec 2011 23:19:26 +0100 Subject: [U-Boot] [PATCH 7/9] board/w7o/flash.c: Fix GCC 4.6 compile warning In-Reply-To: <1323296368-26162-1-git-send-email-wd@denx.de> References: <1323296368-26162-1-git-send-email-wd@denx.de> Message-ID: <1323296368-26162-8-git-send-email-wd@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Fix: flash.c: In function 'flash_init': flash.c:47:25: warning: variable 'base_b1' set but not used [-Wunused-but-set-variable] Signed-off-by: Wolfgang Denk --- board/w7o/flash.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/board/w7o/flash.c b/board/w7o/flash.c index e45401a..20bd920 100644 --- a/board/w7o/flash.c +++ b/board/w7o/flash.c @@ -44,7 +44,7 @@ unsigned long flash_init(void) { int i; unsigned long size_b0, base_b0; - unsigned long size_b1, base_b1; + unsigned long size_b1; /* Init: no FLASHes known */ for (i = 0; i < CONFIG_SYS_MAX_FLASH_BANKS; ++i) @@ -69,7 +69,6 @@ unsigned long flash_init(void) /* Calculate base addresses */ base_b0 = -size_b0; - base_b1 = -size_b1; /* Setup offsets for Boot Flash */ flash_get_offsets(base_b0, &flash_info[0]); -- 1.7.6.4