From 57d40ab70b23740bd5ecde25b88514f70412bbe9 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Fri, 30 Mar 2012 23:19:10 +0200 Subject: [PATCH] RAMDISK: Fix unused variable issue caused by raw rd support MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit image.c: In function ‘boot_get_ramdisk’: image.c:800:8: warning: unused variable ‘end’ [-Wunused-variable] Signed-off-by: Marek Vasut Cc: Wolfgang Denk --- common/image.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/image.c b/common/image.c index 103e0e6e75..342b315918 100644 --- a/common/image.c +++ b/common/image.c @@ -797,7 +797,9 @@ int boot_get_ramdisk(int argc, char * const argv[], bootm_headers_t *images, ulong rd_addr, rd_load; ulong rd_data, rd_len; const image_header_t *rd_hdr; +#ifdef CONFIG_SUPPORT_RAW_INITRD char *end; +#endif #if defined(CONFIG_FIT) void *fit_hdr; const char *fit_uname_config = NULL; -- 2.25.1