[U-Boot] [PATCH 02/14] board/amirix/ap1000/flash.c: Fix GCC 4.6 build warning
Marek Vasut
marek.vasut at gmail.com
Thu Dec 1 23:10:06 CET 2011
> Fix:
> flash.c: In function 'flash_write_cfiword':
> flash.c:778:11: warning: variable 'ctladdr' set but not used
> [-Wunused-but-set-variable]
>
> Signed-off-by: Wolfgang Denk <wd at denx.de>
> ---
> total: 0 errors, 0 warnings, 12 lines checked
> NOTE: Ignored message types: COMPLEX_MACRO CONSIDER_KSTRTO MINMAX
> MULTISTATEMENT_MACRO_USE_DO_WHILE
>
> board/amirix/ap1000/flash.c | 3 ---
> 1 files changed, 0 insertions(+), 3 deletions(-)
>
> diff --git a/board/amirix/ap1000/flash.c b/board/amirix/ap1000/flash.c
> index 1e742e5..bf8877e 100644
> --- a/board/amirix/ap1000/flash.c
> +++ b/board/amirix/ap1000/flash.c
> @@ -774,12 +774,9 @@ 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 */
Logically looks OK
Acked-by: Marek Vasut <marek.vasut at gmail.com>
More information about the U-Boot
mailing list