From: Wolfgang Denk Date: Sat, 10 Apr 2010 00:15:24 +0200 Subject: [U-Boot] [PATCH] mkimage: Fix strict-aliasing compiler warning In-Reply-To: <1270438563-26748-1-git-send-email-ptyser@xes-inc.com> References: <1270438563-26748-1-git-send-email-ptyser@xes-inc.com> Message-ID: <20100409221525.82DA21E173@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Peter Tyser, In message <1270438563-26748-1-git-send-email-ptyser@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 > --- > 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@butch.lmsc.lockheed.com>