mkimage: Fix strict-aliasing compiler warning
authorPeter Tyser <ptyser@xes-inc.com>
Mon, 5 Apr 2010 03:36:03 +0000 (22:36 -0500)
committerWolfgang Denk <wd@denx.de>
Fri, 9 Apr 2010 22:30:26 +0000 (00:30 +0200)
commita2513e27e8df2b7bf481d03e7719f91ce19e89d5
tree53db365ec87e50ad80d9d87139c4758f3aef22fb
parent1f2463d7642c582339c9f9d96471d5d2a169b9bb
mkimage: Fix strict-aliasing compiler warning

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@xes-inc.com>
tools/mkimage.c