Skip to contentSkip to conversation

cmd_pci405.c: Fix GCC 4.6 build warnings

PATCH New Stefan Roese 2 participants 2 messages Nov 15, 2011 – Nov 16, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 14/19 cmd_pci405.c: Fix GCC 4.6 build warnings

Fix:
cmd_pci405.c: In function 'do_loadpci':
cmd_pci405.c:45:6: warning: variable 'status' set but not used [-Wunused-but-set-variable]

---
 board/esd/pci405/cmd_pci405.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
board/esd/pci405/cmd_pci405.c +1 -2
index 13f9019..f570ef3 100644
@@ -42,7 +42,6 @@ int do_loadpci(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 	unsigned int *ptr = 0;
 	int count = 0;
 	int count2 = 0;
-	int status;
 	int i;
 	char addr[16];
 	char str[] = "\\|/-";
@@ -99,7 +98,7 @@ int do_loadpci(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 		local_args[0] = argv[0];
 		local_args[1] = NULL;
-		status = do_bootm (cmdtp, 0, 1, local_args);
+		do_bootm (cmdtp, 0, 1, local_args);
 	}
 
 	return 0;
Signature · 1 line
1.7.7.3
#1 lore raw

PATCH 14/19 cmd_pci405.c: Fix GCC 4.6 build warnings

Dear Stefan Roese,

Quoted 8 lines · In message <[email protected]> you wrote:

Fix:
cmd_pci405.c: In function 'do_loadpci':
cmd_pci405.c:45:6: warning: variable 'status' set but not used [-Wunused-but-set-variable]

---
 board/esd/pci405/cmd_pci405.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The explanation requiring the fewest assumptions is the  most  likely
to be correct.                                    -- William of Occam