[U-Boot] [PATCH] sk98lin: fix compile warnings

Wolfgang Denk
2009-09-14T22:11:43Z

In message <1252660703-15596-5-git-send-email-wd@denx.de> you wrote:
> Fix warnings:
> skge.c: In function 'BoardInitMem':
> skge.c:1389: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skge.c:1390: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skge.c:1391: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skgesirq.c: In function 'SkGePortCheckUpXmac':
> skgesirq.c:1301: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skgesirq.c:1301: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skgesirq.c:1398: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skgesirq.c:1398: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skrlmt.c: In function 'SkRlmtInit':
> skrlmt.c:661: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skxmac2.c: In function 'SkMacPromiscMode':
> skxmac2.c:753: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skxmac2.c:753: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skxmac2.c: In function 'SkMacHashing':
> skxmac2.c:803: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skxmac2.c:803: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skxmac2.c: In function 'SkMacFlushTxFifo':
> skxmac2.c:1115: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skxmac2.c:1115: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skxmac2.c: In function 'SkMacFlushRxFifo':
> skxmac2.c:1145: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skxmac2.c:1145: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skxmac2.c: In function 'SkXmInitPauseMd':
> skxmac2.c:1987: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skxmac2.c:1987: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skxmac2.c: In function 'SkXmOverflowStatus':
> skxmac2.c:4236: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skxmac2.c:4236: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skxmac2.c:4242: warning: dereferencing type-punned pointer will break strict-aliasing rules
> skxmac2.c:4242: warning: dereferencing type-punned pointer will break strict-aliasing rules
>
> Signed-off-by: Wolfgang Denk <wd@denx.de>
> Cc: Ben Warren <biggerbadderben@gmail.com>
> ---
> drivers/net/sk98lin/skge.c | 12 +++++++++---
> drivers/net/sk98lin/skgesirq.c | 7 +++++--
> drivers/net/sk98lin/skrlmt.c | 3 ++-
> drivers/net/sk98lin/skxmac2.c | 20 +++++++++++++-------
> 4 files changed, 29 insertions(+), 13 deletions(-)

Aplied.

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
Marriage is the triumph of imagination over intelligence. Second
marriage is the triumph of hope over experience.