[U-Boot] Intel Edison build warning

Andy Shevchenko andriy.shevchenko at linux.intel.com
Fri Nov 24 15:42:22 UTC 2017


On Fri, 2017-11-24 at 16:06 +0800, Bin Meng wrote:
> Hi,
> 
> Intel Edison has a build warning below.
> 
> +  *env_addr = offset;
> +            ^
> w+../env/mmc.c: In function 'mmc_get_env_addr':
> w+../env/mmc.c:121:12: warning: 'val' may be used uninitialized in
> this function [-Wmaybe-uninitialized]
> 
> I did not figure out what is wrong here. v2017.11 does not have such
> build warning.
> 
> Do you have any idea?

I can't reproduce.

What I did:

% git remote update -p
Fetching origin

% git checkout origin/master

% git clean -xdf

% make W=2 edison_defconfig

% make W=2 -j1

% touch env/mmc.c

% make W=2 -j1

No warnings WRT env/mmc.c at all.

% gcc --version

gcc (Debian 7.2.0-16) 7.2.0

-- 
Andy Shevchenko <andriy.shevchenko at linux.intel.com>
Intel Finland Oy


More information about the U-Boot mailing list