Skip to content

Commit

Permalink
GCC47: Fix warning in cmd_nand.c
Browse files Browse the repository at this point in the history
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 <[email protected]>
Cc: Scott Wood <[email protected]>
Cc: Wolfgang Denk <[email protected]>
  • Loading branch information
Marek Vasut authored and wdenx committed Apr 29, 2012
1 parent e654fac commit f624dd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/cmd_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f624dd1

Please sign in to comment.