From: Simon Glass Date: Wed, 17 Apr 2013 16:13:45 +0000 (+0000) Subject: x86: Fix warning in cmd_ximg.c when CONFIG_GZIP is not defined X-Git-Tag: v2013.07-rc1~1^2~54^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a92181b3991dca3bb6bbdcd4a12591dd027cace1;p=u-boot x86: Fix warning in cmd_ximg.c when CONFIG_GZIP is not defined This local variable is not used unless CONFIG_GZIP is defined. Fix it. Signed-off-by: Simon Glass --- diff --git a/common/cmd_ximg.c b/common/cmd_ximg.c index ea0a26e784..02084b0204 100644 --- a/common/cmd_ximg.c +++ b/common/cmd_ximg.c @@ -58,7 +58,9 @@ do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) const void *fit_data; size_t fit_len; #endif +#ifdef CONFIG_GZIP uint unc_len = CONFIG_SYS_XIMG_LEN; +#endif uint8_t comp; verify = getenv_yesno("verify");