diff options
author | Heiko Schocher <hs@denx.de> | 2011-12-12 20:37:17 +0000 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2011-12-20 22:28:51 +0100 |
commit | 43d4a5e687fe530d641227910d5e8f1514228eff (patch) | |
tree | 07ac773820a0be7db4de411f76434b5c3ac78cac | |
parent | c0e6723ee4b98fa0bda48028568bc3f853682567 (diff) | |
download | u-boot-imx-43d4a5e687fe530d641227910d5e8f1514228eff.zip u-boot-imx-43d4a5e687fe530d641227910d5e8f1514228eff.tar.gz u-boot-imx-43d4a5e687fe530d641227910d5e8f1514228eff.tar.bz2 |
common/cmd_pxe.c: Fix GCC 4.6 build warnings
Fix:
cmd_pxe.c: In function 'parse_pxefile_top':
cmd_pxe.c:941:5: warning: 'err' may be used uninitialized in this
function [-Wuninitialized]
cmd_pxe.c:921:6: note: 'err' was declared here
Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Jason Hobbs <jason.hobbs@calxeda.com>
Acked-by: Jason Hobbs <jason.hobbs@calxeda.com>
-rw-r--r-- | common/cmd_pxe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/cmd_pxe.c b/common/cmd_pxe.c index 9426f5b..7c0cb66 100644 --- a/common/cmd_pxe.c +++ b/common/cmd_pxe.c @@ -918,7 +918,7 @@ static int parse_menu(char **c, struct pxe_menu *cfg, char *b, int nest_level) { struct token t; char *s = *c; - int err; + int err = 0; get_token(c, &t, L_KEYWORD); |