[U-Boot] [PATCH] mkimage: Fix strict-aliasing compiler warning

Wolfgang Denk wd at denx.de
Sat Apr 10 00:15:24 CEST 2010


Dear Peter Tyser,

In message <1270438563-26748-1-git-send-email-ptyser at xes-inc.com> you wrote:
> Version 4.2.4 of gcc produces the following warnings without this change:
>   mkimage.c: In function `main':
>   mkimage.c:204: warning: dereferencing type-punned pointer will break strict-aliasing rules
>   mkimage.c:222: warning: dereferencing type-punned pointer will break strict-aliasing rules
> 
> Signed-off-by: Peter Tyser <ptyser at xes-inc.com>
> ---
>  tools/mkimage.c |    8 +++-----
>  1 files changed, 3 insertions(+), 5 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
I'm what passes for a Unix guru in my office. This is  a  frightening
concept. - Lee Ann Goldstein, in <3k55ba$c43 at butch.lmsc.lockheed.com>


More information about the U-Boot mailing list