[U-Boot] [PATCH] drivers/net/dnet.c: Fix GCC 4.6 warnings

Heiko Schocher hs at denx.de
Wed Nov 23 08:34:40 CET 2011


Hello Anatolij,

Anatolij Gustschin wrote:
> Fix:
> dnet.c: In function 'dnet_send':
> dnet.c:136:9: warning: variable 'len' set but not used
> [-Wunused-but-set-variable]
> dnet.c: In function 'dnet_set_hwaddr':
> dnet.c:209:2: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> dnet.c:209:2: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> dnet.c:209:2: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> dnet.c:209:2: warning: dereferencing type-punned pointer will
> break strict-aliasing rules [-Wstrict-aliasing]
> 
> Signed-off-by: Anatolij Gustschin <agust at denx.de>
> ---
>  drivers/net/dnet.c |   12 +++++-------
>  1 files changed, 5 insertions(+), 7 deletions(-)

Applied to u-boot-stagin hs at denx.de

Thanks!

bye,
Heiko
-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany


More information about the U-Boot mailing list