Patchwork [U-Boot] common/cmd_bootm.c: Fix GCC 4.6 warning

login
register
mail settings
Submitter Anatolij Gustschin
Date May 19, 2012, 3:38 p.m.
Message ID <1337441899-7363-1-git-send-email-agust@denx.de>
Download mbox | patch
Permalink /patch/160196/
State Accepted
Commit a075a79f98cc3f5972a2ed80551c0873217aef7d
Headers show

Comments

Anatolij Gustschin - May 19, 2012, 3:38 p.m.
cmd_bootm.c: In function 'do_bootz':
cmd_bootm.c:1590:9: warning: variable 'iflag' set but not used
[-Wunused-but-set-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
This is needed after merging the pending ARM pull request.

 common/cmd_bootm.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
Wolfgang Denk - May 22, 2012, 8:13 a.m.
Dear Anatolij Gustschin,

In message <1337441899-7363-1-git-send-email-agust@denx.de> you wrote:
> cmd_bootm.c: In function 'do_bootz':
> cmd_bootm.c:1590:9: warning: variable 'iflag' set but not used
> [-Wunused-but-set-variable]
> 
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> ---
> This is needed after merging the pending ARM pull request.
> 
>  common/cmd_bootm.c |    3 +--
>  1 files changed, 1 insertions(+), 2 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Patch

diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 5685232..45e726a 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -1587,7 +1587,6 @@  static int bootz_start(cmd_tbl_t *cmdtp, int flag, int argc,
 
 static int do_bootz(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
-	ulong		iflag;
 	bootm_headers_t	images;
 
 	if (bootz_start(cmdtp, flag, argc, argv, &images))
@@ -1598,7 +1597,7 @@  static int do_bootz(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 	 * overwrite all exception vector code, so we cannot easily
 	 * recover from any failures any more...
 	 */
-	iflag = disable_interrupts();
+	disable_interrupts();
 
 #if defined(CONFIG_CMD_USB)
 	/*