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

Stefano Babic sbabic at denx.de
Wed May 9 12:43:56 CEST 2012


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 at denx.de>
---
 common/cmd_bootm.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the U-Boot mailing list