Re: [U-Boot] Intel Edison build warning

2017-11-26 Thread Bin Meng
Hi Andy, On Fri, Nov 24, 2017 at 11:56 PM, Andy Shevchenko wrote: > On Fri, 2017-11-24 at 17:42 +0200, Andy Shevchenko wrote: >> On Fri, 2017-11-24 at 16:06 +0800, Bin Meng wrote: >> > Hi, >> > >> > Intel Edison has a build warning below. >> > >> > + *env_addr = offset; >> > +^ >> >

Re: [U-Boot] Intel Edison build warning

2017-11-24 Thread Andy Shevchenko
On Fri, 2017-11-24 at 17:42 +0200, Andy Shevchenko wrote: > 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: w

Re: [U-Boot] Intel Edison build warning

2017-11-24 Thread Andy Shevchenko
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-uninitia

[U-Boot] Intel Edison build warning

2017-11-24 Thread Bin Meng
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 ha