From: Piotr Dymacz Date: Fri, 7 Jul 2017 18:24:39 +0000 (+0200) Subject: Fix compiler warning in cmd_custom.c/do_default_env() X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=64714eed49a35648b28811330374e28a7b7a51cc;p=oweals%2Fu-boot_mod.git Fix compiler warning in cmd_custom.c/do_default_env() --- 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