[U-Boot] gcc-4.6 warnings

Mike Frysinger vapier at gentoo.org
Wed Aug 24 20:47:25 CEST 2011


On Wednesday, August 24, 2011 14:29:43 Kumar Gala wrote:
> We get a bunch of warnings like this with gcc-4.6.x:
> 
> e1000.c:4334:3: warning: variable 'x' set but not used
> [-Wunused-but-set-variable]
> 
> Are we get with adding -Wunused-but-set-variable so they don't show up?

in general, i like this new warning as it tends to catch variables that are 
dead.  i wonder why the e1000 driver has this indirection in the first place.  
simply calling readl() without using the return value shouldnt cause warnings 
or DCE ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20110824/730b29df/attachment.pgp 


More information about the U-Boot mailing list