From 500545cc6b83958209128bffa825b3c842a21a4e Mon Sep 17 00:00:00 2001 From: wdenk Date: Thu, 6 Mar 2003 14:23:06 +0000 Subject: Fix problem with default #defines Cleanup compiler warning --- common/env_flash.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common/env_flash.c') diff --git a/common/env_flash.c b/common/env_flash.c index 19e2282643..426d01b19b 100644 --- a/common/env_flash.c +++ b/common/env_flash.c @@ -160,9 +160,11 @@ int env_init(void) #ifdef CMD_SAVEENV int saveenv(void) { + char *saved_data = NULL; int rc = 1; +#if CFG_ENV_SECT_SIZE > CFG_ENV_SIZE ulong up_data = 0; - char *saved_data = NULL; +#endif debug ("Protect off %08lX ... %08lX\n", (ulong)flash_addr, end_addr); -- cgit