rv1126-uboot/env
Philipp Tomsich 4c0727fd0e UPSTREAM: env: suppress a spurious warning with GCC 7.1
GCC 7.1 seems to be smart enough to track val through the various
static inline functions, but not smart enough to see that val will
always be initialised when no error is returned.  This triggers
the following warning:
  env/mmc.c: In function 'mmc_get_env_addr':
  env/mmc.c:121:12: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized]

To make it easier for compiler to understand what is going on, let's
initialise val.

Change-Id: I9e78b4a72f8124bde37946aaad0caa82c064ec70
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
(cherry picked from commit fd374665c9b724bb3eb0da32db0bb7ecc5cf1337)
2018-01-17 15:27:28 +08:00
..
Kconfig UPSTREAM: env: Drop CONFIG_ENV_IS_IN_DATAFLASH 2018-01-17 15:27:28 +08:00
Makefile UPSTREAM: env: Drop CONFIG_ENV_IS_IN_DATAFLASH 2018-01-17 15:27:28 +08:00
attr.c
callback.c
common.c treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
eeprom.c
embedded.c
env.c UPSTREAM: env: Drop CONFIG_ENV_IS_IN_DATAFLASH 2018-01-17 15:27:28 +08:00
ext4.c
fat.c
flags.c
flash.c
mmc.c UPSTREAM: env: suppress a spurious warning with GCC 7.1 2018-01-17 15:27:28 +08:00
nand.c
nowhere.c
nvram.c
onenand.c
remote.c
sata.c
sf.c treewide: replace with error() with pr_err() 2018-01-17 15:27:28 +08:00
ubi.c