* [U-Boot] [PATCH] common/cmd_pxe.c: Fix GCC 4.6 build warnings
@ 2011-12-13 6:37 Heiko Schocher
2011-12-13 12:46 ` Jason Hobbs
2011-12-19 9:29 ` Anatolij Gustschin
0 siblings, 2 replies; 3+ messages in thread
From: Heiko Schocher @ 2011-12-13 6:37 UTC (permalink / raw)
To: u-boot
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>
---
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);
--
1.7.6.4
^ permalink raw reply related [flat|nested] 3+ messages in thread* [U-Boot] [PATCH] common/cmd_pxe.c: Fix GCC 4.6 build warnings
2011-12-13 6:37 [U-Boot] [PATCH] common/cmd_pxe.c: Fix GCC 4.6 build warnings Heiko Schocher
@ 2011-12-13 12:46 ` Jason Hobbs
2011-12-19 9:29 ` Anatolij Gustschin
1 sibling, 0 replies; 3+ messages in thread
From: Jason Hobbs @ 2011-12-13 12:46 UTC (permalink / raw)
To: u-boot
Dear Heiko,
Thanks for the fix.
On Tue, Dec 13, 2011 at 01:37:17AM -0500, Heiko Schocher wrote:
> 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>
> ---
> 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);
>
> --
> 1.7.6.4
>
^ permalink raw reply [flat|nested] 3+ messages in thread* [U-Boot] [PATCH] common/cmd_pxe.c: Fix GCC 4.6 build warnings
2011-12-13 6:37 [U-Boot] [PATCH] common/cmd_pxe.c: Fix GCC 4.6 build warnings Heiko Schocher
2011-12-13 12:46 ` Jason Hobbs
@ 2011-12-19 9:29 ` Anatolij Gustschin
1 sibling, 0 replies; 3+ messages in thread
From: Anatolij Gustschin @ 2011-12-19 9:29 UTC (permalink / raw)
To: u-boot
Hi Heiko,
On Tue, 13 Dec 2011 07:37:17 +0100
Heiko Schocher <hs@denx.de> wrote:
> 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>
> ---
> common/cmd_pxe.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
Applied to u-boot-staging/agust at denx.de.
Thanks!
Anatolij
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-12-19 9:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-13 6:37 [U-Boot] [PATCH] common/cmd_pxe.c: Fix GCC 4.6 build warnings Heiko Schocher
2011-12-13 12:46 ` Jason Hobbs
2011-12-19 9:29 ` Anatolij Gustschin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox