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

Wolfgang Denk
2011-10-01T21:27:21Z

Dear Marek Vasut,

In message <1316996766-14248-7-git-send-email-marek.vasut@gmail.com> you 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.
>
> Signed-off-by: Marek Vasut <marek.vasut@gmail.com>
> ---
> common/cmd_mem.c | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)

Applied, thanks.

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
"... freedom ... is a worship word..."
"It is our worship word too."
-- Cloud William and Kirk, "The Omega Glory", stardate unknown