From: Mike Frysinger Date: Sun, 25 Sep 2011 23:41:29 -0400 Subject: [U-Boot] [PATCH 7/7] GCC4.6: Squash warning in cmd_mem.c In-Reply-To: <1316996766-14248-7-git-send-email-marek.vasut@gmail.com> References: <1316996766-14248-1-git-send-email-marek.vasut@gmail.com> <1316996766-14248-7-git-send-email-marek.vasut@gmail.com> Message-ID: <201109252341.30328.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 -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