[U-Boot] [PATCH] cmd_sf: Fix compiler warning

Simon Glass sjg at chromium.org
Tue Oct 4 15:31:25 CEST 2011


Hi,

On Mon, Oct 3, 2011 at 7:54 AM, Mike Frysinger <vapier at gentoo.org> wrote:
> On Monday, October 03, 2011 10:35:47 Kumar Gala wrote:
>> cmd_sf.c: In function 'do_spi_flash':
>> cmd_sf.c:164:9: warning: 'skipped' may be used uninitialized in this
>> function
>
> hmm, not sure how i missed this.  but looks sane to me.
> Acked-by: Mike Frysinger <vapier at gentoo.org>

You didn't miss it - I vaguely remember some discussion. My compiler
seems to spot that it cannot be used unused (the patch misses out a
bit that init it), but clearly some don't.

Acked-by: Simon Glass <sjg at chromium.org>

Regards,
Simon

> -mike
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
>


More information about the U-Boot mailing list