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

Submitted by Stefano Babic on May 9, 2012, 10:43 a.m.

Details

Message ID 1336560236-19784-1-git-send-email-sbabic@denx.de
State Accepted
Headers show

Commit Message

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 hide | download patch | download mbox

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))