From 64714eed49a35648b28811330374e28a7b7a51cc Mon Sep 17 00:00:00 2001 From: Piotr Dymacz Date: Fri, 7 Jul 2017 20:24:39 +0200 Subject: [PATCH] Fix compiler warning in cmd_custom.c/do_default_env() --- u-boot/common/cmd_custom.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/u-boot/common/cmd_custom.c b/u-boot/common/cmd_custom.c index d74f0f4..ee4afdd 100644 --- a/u-boot/common/cmd_custom.c +++ b/u-boot/common/cmd_custom.c @@ -185,10 +185,11 @@ U_BOOT_CMD(startsc, 1, 0, do_start_sc, "start serial console\n", NULL); * Erase environment sector */ int do_default_env(cmd_tbl_t * cmdtp, int flag, int argc, char *argv[]){ - int rc, rcode = 0; + int rcode = 0; int len; ulong end_addr, flash_sect_addr; #if defined(CFG_ENV_SECT_SIZE) && (CFG_ENV_SECT_SIZE > CFG_ENV_SIZE) + int rc; ulong flash_offset; unsigned char env_buffer[CFG_ENV_SECT_SIZE]; #endif -- 2.25.1