[U-Boot] [PATCH 7/7] GCC4.6: Squash warning in cmd_mem.c

Wolfgang Denk wd at denx.de
Mon Sep 26 09:25:36 CEST 2011


Dear Mike Frysinger,

In message <201109252341.30328.vapier at gentoo.org> you wrote:
> 
> > The assigned variable can be removed because the pointers are volatile so
> > accesses to their addresses are always generated.
>
> i think the stores to a var were added to avoid a gcc warning, but if newer 
> versions don't warn anymore, should be fine.

Obviously we have to check if older tools still accept this.


Marek, which tool chains did you use for testing?

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
How many seconds are there in a year? If I tell you there are 3.155 x
10^7, you won't even try to remember it. On the other hand, who could
forget that, to within half a percent, pi seconds is  a  nanocentury.
                                               -- Tom Duff, Bell Labs


More information about the U-Boot mailing list