From: Marek Vasut Date: Sat, 28 Apr 2012 22:28:39 +0000 (+0200) Subject: GCC47: Fix warning in cmd_nand.c X-Git-Tag: v2012.07-rc1~159 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f624dd15e3602d6b29b191f42388c182aaa1a855;p=oweals%2Fu-boot.git GCC47: Fix warning in cmd_nand.c cmd_nand.c: In function ‘arg_off_size’: cmd_nand.c:216:5: warning: ‘maxsize’ may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Marek Vasut Cc: Scott Wood Cc: Wolfgang Denk --- diff --git a/common/cmd_nand.c b/common/cmd_nand.c index bae630dfb6..0fd3a6c414 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;