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 a/board/flagadm/flash.c b/board/flagadm/flash.c index bbefbac..ff37d9e 100644 --- a/board/flagadm/flash.c +++ b/board/flagadm/flash.c @@ -528,7 +528,8 @@ int write_word (flash_info_t *info, ulong dest, ulong da) ulong start; char csr; int flag; - ushort * d = (ushort*)&da; + ulong *dla = &da; + ushort *d = (ushort*)dla; int i; /* Check if Flash is (sufficiently) erased */ -- 1.6.0.6
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot