u-boot/env
Philipp Tomsich fd374665c9 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.

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-11-29 22:36:58 -05:00
..
attr.c Move environment files from common/ to env/ 2017-08-15 08:18:45 -04:00
callback.c env: Rename getenv/_f() to env_get() 2017-08-16 08:30:24 -04:00
common.c env: Remove CONFIG_ENV_AES support 2017-11-21 07:43:31 -05:00
eeprom.c env: Replace all open-coded gd->env_valid values with ENV_ flags 2017-08-20 19:27:44 -04:00
embedded.c Move environment files from common/ to env/ 2017-08-15 08:18:45 -04:00
env.c env: Drop CONFIG_ENV_IS_IN_DATAFLASH 2017-10-16 09:42:51 -04:00
ext4.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
fat.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
flags.c env: Rename some other getenv()-related functions 2017-08-16 08:31:11 -04:00
flash.c env: Replace all open-coded gd->env_valid values with ENV_ flags 2017-08-20 19:27:44 -04:00
Kconfig env: Remove CONFIG_ENV_AES support 2017-11-21 07:43:31 -05:00
Makefile env: Drop CONFIG_ENV_IS_IN_DATAFLASH 2017-10-16 09:42:51 -04:00
mmc.c env: suppress a spurious warning with GCC 7.1 2017-11-29 22:36:58 -05:00
nand.c env: Replace all open-coded gd->env_valid values with ENV_ flags 2017-08-20 19:27:44 -04:00
nowhere.c env: Correct case of no sub-init function 2017-08-20 19:27:28 -04:00
nvram.c env: Replace all open-coded gd->env_valid values with ENV_ flags 2017-08-20 19:27:44 -04:00
onenand.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
remote.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
sata.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00
sf.c treewide: replace with error() with pr_err() 2017-10-04 11:59:44 -04:00
ubi.c env: Adjust the load() method to return an error 2017-08-16 08:31:24 -04:00