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

login
register
mail settings
Submitter Stefano Babic
Date May 9, 2012, 10:43 a.m.
Message ID <1336560236-19784-1-git-send-email-sbabic@denx.de>
Download mbox | patch
Permalink /patch/157897/
State Accepted
Headers show

Comments

Stefano Babic - May 9, 2012, 10:43 a.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: Stefano Babic <sbabic@denx.de>
---
 common/cmd_bootm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index 5685232..c574ce0 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -1587,7 +1587,7 @@  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;
+	__maybe_unused ulong iflag;
 	bootm_headers_t	images;
 
 	if (bootz_start(cmdtp, flag, argc, argv, &images))