From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Thu, 1 Dec 2011 23:14:47 +0100 Subject: [U-Boot] [PATCH 13/14] board/sbc405/strataflash.c: Fix GCC 4.6 build warning In-Reply-To: <1322641077-829-14-git-send-email-wd@denx.de> References: <1322641077-829-1-git-send-email-wd@denx.de> <1322641077-829-14-git-send-email-wd@denx.de> Message-ID: <201112012314.47719.marek.vasut@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > Fix: > strataflash.c: In function 'flash_write_cfiword': > strataflash.c:673:11: warning: variable 'ctladdr' set but not used > [-Wunused-but-set-variable] > > Signed-off-by: Wolfgang Denk > --- > total: 0 errors, 0 warnings, 14 lines checked > NOTE: Ignored message types: COMPLEX_MACRO CONSIDER_KSTRTO MINMAX > MULTISTATEMENT_MACRO_USE_DO_WHILE > > board/sbc405/strataflash.c | 3 --- > 1 files changed, 0 insertions(+), 3 deletions(-) > > diff --git a/board/sbc405/strataflash.c b/board/sbc405/strataflash.c > index e5863d6..b0d3c6c 100644 > --- a/board/sbc405/strataflash.c > +++ b/board/sbc405/strataflash.c > @@ -670,14 +670,11 @@ static ulong flash_get_size (ulong base, int banknum) > static int flash_write_cfiword (flash_info_t *info, ulong dest, cfiword_t > cword) { > > - cfiptr_t ctladdr; > cfiptr_t cptr; > int flag; > > - ctladdr.cp = flash_make_addr(info, 0, 0); > cptr.cp = (uchar *)dest; > > - > /* Check if Flash is (sufficiently) erased */ > switch(info->portwidth) { > case FLASH_CFI_8BIT: The logic looks OK Acked-by: Marek Vasut