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

Mike Frysinger vapier at gentoo.org
Mon Sep 26 05:41:29 CEST 2011


On Sunday, September 25, 2011 20:26:06 Marek Vasut wrote:
> cmd_mem.c: In function ‘do_mem_loop’:
> cmd_mem.c:474:25: warning: variable ‘junk’ set but not used
> [-Wunused-but-set-variable]
> 
> 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.

Acked-by: Mike Frysinger <vapier at gentoo.org>
-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/20110925/a1e9facd/attachment.pgp 


More information about the U-Boot mailing list