[U-Boot] gcc-4.6 warnings

Wolfgang Denk wd at denx.de
Wed Aug 24 21:05:04 CEST 2011


Dear Kumar Gala,

In message <3AA0E5B6-7E38-4CB0-94E2-F7BBA9A100FA at kernel.crashing.org> you 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?

If the variable is not used, why don't we remove it, then?

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
C makes it easy for you to shoot yourself in the foot. C++ makes that
harder, but when you do, it blows away your whole leg.
                                                 -- Bjarne Stroustrup


More information about the U-Boot mailing list