diff mbox

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

Message ID 1321744338-13207-11-git-send-email-agust@denx.de
State Accepted
Commit 5bf2766b4b5e59c7648a0d4137b17f3a46b5a9bb
Headers show

Commit Message

Anatolij Gustschin Nov. 19, 2011, 11:12 p.m. UTC
Fix:
cmd_bootm.c: In function 'bootm_load_os':
cmd_bootm.c:315:7: warning: unused variable 'unc_len'
[-Wunused-variable]

Signed-off-by: Anatolij Gustschin <agust@denx.de>
---
 common/cmd_bootm.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Comments

Heiko Schocher Nov. 23, 2011, 7:23 a.m. UTC | #1
Hello Anatolij,

Anatolij Gustschin wrote:
> Fix:
> cmd_bootm.c: In function 'bootm_load_os':
> cmd_bootm.c:315:7: warning: unused variable 'unc_len'
> [-Wunused-variable]
> 
> Signed-off-by: Anatolij Gustschin <agust@denx.de>
> ---
>  common/cmd_bootm.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)

Applied to u-boot-staging hs@denx.de

Thanks!

bye,
Heiko
diff mbox

Patch

diff --git a/common/cmd_bootm.c b/common/cmd_bootm.c
index d301332..b073f09 100644
--- a/common/cmd_bootm.c
+++ b/common/cmd_bootm.c
@@ -36,6 +36,7 @@ 
 #include <lmb.h>
 #include <linux/ctype.h>
 #include <asm/byteorder.h>
+#include <linux/compiler.h>
 
 #if defined(CONFIG_CMD_USB)
 #include <usb.h>
@@ -312,7 +313,7 @@  static int bootm_load_os(image_info_t os, ulong *load_end, int boot_progress)
 	ulong blob_end = os.end;
 	ulong image_start = os.image_start;
 	ulong image_len = os.image_len;
-	uint unc_len = CONFIG_SYS_BOOTM_LEN;
+	__maybe_unused uint unc_len = CONFIG_SYS_BOOTM_LEN;
 #if defined(CONFIG_LZMA) || defined(CONFIG_LZO)
 	int ret;
 #endif /* defined(CONFIG_LZMA) || defined(CONFIG_LZO) */