From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anton Vorontsov Date: Tue, 1 Sep 2009 20:59:02 +0400 Subject: [U-Boot] [PATCH 2/2] fsl: sys_eeprom: Fix 'may be used uninitialized' warning Message-ID: <20090901165902.GA6435@oksana.dev.rtsoft.ru> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de The warning is bogus, so silence it with uninitialized_var(). Signed-off-by: Anton Vorontsov --- board/freescale/common/sys_eeprom.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/board/freescale/common/sys_eeprom.c b/board/freescale/common/sys_eeprom.c index c0fff68..a765b39 100644 --- a/board/freescale/common/sys_eeprom.c +++ b/board/freescale/common/sys_eeprom.c @@ -24,6 +24,7 @@ */ #include +#include #include #include #include @@ -204,7 +205,8 @@ static void update_crc(void) */ static int prog_eeprom(void) { - int ret, i; + int uninitialized_var(ret); + int i; void *p; #ifdef CONFIG_SYS_EEPROM_BUS_NUM unsigned int bus; -- 1.6.3.3