]> git.sur5r.net Git - u-boot/commitdiff
common/cmd_bootm.c: Fix GCC 4.6 warnings
authorAnatolij Gustschin <agust@denx.de>
Sat, 19 Nov 2011 13:12:18 +0000 (13:12 +0000)
committerHeiko Schocher <hs@denx.de>
Wed, 23 Nov 2011 07:14:27 +0000 (08:14 +0100)
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

index d301332d36ddb588819613f6fcf29f0bf3b9ba6c..b073f095ba00610f978d0b4d22b6e69ee24861ae 100644 (file)
@@ -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) */