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

Wolfgang Denk wd at denx.de
Tue Dec 20 23:21:13 CET 2011


Dear Anatolij Gustschin,

In message <1324402599-781-1-git-send-email-agust at denx.de> you wrote:
> Fix:
> e1000.c: In function 'e1000_read_mac_addr':
> e1000.c:1149:2: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> 
> e1000.c:1149:2: warning: dereferencing type-punned pointer
> will break strict-aliasing rules [-Wstrict-aliasing]
> 
> Signed-off-by: Anatolij Gustschin <agust at denx.de>
> Cc: Kyle Moffett <Kyle.D.Moffett at boeing.com>
> ---
> v2:
>  - use is_valid_ether_addr() for the check as suggested
>    by Kyle Moffett
> 
>  drivers/net/e1000.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Applied, thanks.

Best regards,

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
If some day we are defeated, well, war has  its  fortunes,  good  and
bad.
	-- Commander Kor, "Errand of Mercy", stardate 3201.7


More information about the U-Boot mailing list