[U-Boot] [PATCH 1/2] GCC47: Fix warning in cmd_nand.c
Marek Vasut
marex at denx.de
Sun Apr 29 00:25:34 CEST 2012
Dear Marek Vasut,
> cmd_nand.c: In function âarg_off_sizeâ:
> cmd_nand.c:216:5: warning: âmaxsizeâ may be used uninitialized in this
> function [-Wmaybe-uninitialized]
AW CRAP ... ignore this, damn encoding problem.
>
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Scott Wood <scottwood at freescale.com>
> ---
> common/cmd_nand.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/common/cmd_nand.c b/common/cmd_nand.c
> index bae630d..0fd3a6c 100644
> --- a/common/cmd_nand.c
> +++ b/common/cmd_nand.c
> @@ -191,7 +191,7 @@ static int arg_off_size(int argc, char *const argv[],
> int *idx, loff_t *off, loff_t *size)
> {
> int ret;
> - loff_t maxsize;
> + loff_t maxsize = 0;
>
> if (argc == 0) {
> *off = 0;
Best regards,
Marek Vasut
More information about the U-Boot
mailing list