[U-Boot] [PATCH] board/flagadm/flash.c: fix compile warning

2009-09-11 Thread Wolfgang Denk
Fix warning: flash.c:531: warning: dereferencing type-punned pointer will break strict-aliasing rules Signed-off-by: Wolfgang Denk w...@denx.de Cc: K�ri Dav��sson k...@flaga.is --- board/flagadm/flash.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git

Re: [U-Boot] [PATCH] board/flagadm/flash.c: fix compile warning

2009-09-11 Thread Scott Wood
On Fri, Sep 11, 2009 at 11:18:19AM +0200, Wolfgang Denk wrote: Fix warning: flash.c:531: warning: dereferencing type-punned pointer will break strict-aliasing rules Signed-off-by: Wolfgang Denk w...@denx.de Cc: K?ri Dav??sson k...@flaga.is --- board/flagadm/flash.c |3 ++- 1 files

Re: [U-Boot] [PATCH] board/flagadm/flash.c: fix compile warning

2009-09-11 Thread Wolfgang Denk
Dear Scott Wood, In message 20090911163321.gb13...@b07421-ec1.am.freescale.net you wrote: - ushort * d = (ushort*)da; + ulong *dla = da; + ushort *d = (ushort*)dla; I don't see how this is any more legal under strict aliasing rules -- you just made it a little more complicated

Re: [U-Boot] [PATCH] board/flagadm/flash.c: fix compile warning

2009-09-11 Thread Scott Wood
Wolfgang Denk wrote: Dear Scott Wood, In message 20090911163321.gb13...@b07421-ec1.am.freescale.net you wrote: - ushort * d = (ushort*)da; + ulong *dla = da; + ushort *d = (ushort*)dla; I don't see how this is any more legal under strict aliasing rules -- you just made it a little