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
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
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
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
4 matches
Mail list logo