Skip to contentSkip to conversation

powerpc: Fix compilation warning in board.c

U-Boot Applied Stefan Roese 2 participants 2 messages Feb 23, 2009 – Feb 25, 2009

lore
Share & tools
lore
#0 lore raw

Fix this warning:

board.c: In function 'board_init_r':
board.c:653: warning: unused variable 'i'
board.c:651: warning: unused variable 'e'

---
 lib_ppc/board.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
lib_ppc/board.c +1 -2
index 165cd1f..f1b62f5 100644
@@ -648,9 +648,8 @@ void board_init_f (ulong bootflag)
 void board_init_r (gd_t *id, ulong dest_addr)
 {
 	cmd_tbl_t *cmdtp;
-	char *s, *e;
+	char *s;
 	bd_t *bd;
-	int i;
 	extern void malloc_bin_reloc (void);
 #ifndef CONFIG_ENV_IS_NOWHERE
 	extern char * env_name_spec;
Signature · 1 line
1.6.1.3
#1 lore raw

Dear Stefan Roese,

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

Fix this warning:

board.c: In function 'board_init_r':
board.c:653: warning: unused variable 'i'
board.c:651: warning: unused variable 'e'

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

Applied to next, thanks.

Best regards,

Wolfgang Denk

Signature · 6 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
egrep patterns are full regular expressions; it uses a fast  determi-
nistic algorithm that sometimes needs exponential space.
- unix manuals