Skip to content
Snippets Groups Projects
Commit 5bf2766b authored by Anatolij Gustschin's avatar Anatolij Gustschin Committed by Heiko Schocher
Browse files

common/cmd_bootm.c: Fix GCC 4.6 warnings


Fix:
cmd_bootm.c: In function 'bootm_load_os':
cmd_bootm.c:315:7: warning: unused variable 'unc_len'
[-Wunused-variable]

Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
parent 5076c7ab
No related branches found
No related tags found
No related merge requests found
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
#include <lmb.h> #include <lmb.h>
#include <linux/ctype.h> #include <linux/ctype.h>
#include <asm/byteorder.h> #include <asm/byteorder.h>
#include <linux/compiler.h>
#if defined(CONFIG_CMD_USB) #if defined(CONFIG_CMD_USB)
#include <usb.h> #include <usb.h>
...@@ -312,7 +313,7 @@ static int bootm_load_os(image_info_t os, ulong *load_end, int boot_progress) ...@@ -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 blob_end = os.end;
ulong image_start = os.image_start; ulong image_start = os.image_start;
ulong image_len = os.image_len; 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) #if defined(CONFIG_LZMA) || defined(CONFIG_LZO)
int ret; int ret;
#endif /* defined(CONFIG_LZMA) || defined(CONFIG_LZO) */ #endif /* defined(CONFIG_LZMA) || defined(CONFIG_LZO) */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment