[U-Boot] [net/eth.c:64]: (error) Uninitialized variable: skip_state
Tom Rini
trini at ti.com
Thu Nov 6 19:52:39 CET 2014
On Thu, Nov 06, 2014 at 07:12:55PM +0100, Wolfgang Denk wrote:
> Dear Tom Rini,
>
> In message <20141106164628.GR24724 at bill-the-cat> you wrote:
> >
> > > [net/eth.c:64]: (error) Uninitialized variable: skip_state
> >
> > Dense code, like cmd_ini.c my cppcheck is OK and looking at the code
> > manually I think it's fine too:
> > return ((skip_state = getenv(enetvar)) != NULL);
>
> Looks OK to me, too, but recent versions of cppcheck spew this error.
File a bug back with them then? I do like what cppcheck is doing 'tho,
I poked some of the sandbox ones as well and they're real.
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141106/1425dedb/attachment.pgp>
More information about the U-Boot
mailing list