[U-Boot] [PATCH 9/9] board/w7o/vpd.c: Fix GCC 4.6 compile warnings

Wolfgang Denk wd at denx.de
Thu Dec 8 20:52:33 CET 2011


Dear Wolfgang Denk,

In message <1323296368-26162-10-git-send-email-wd at denx.de> you wrote:
> Fix:
> vpd.c: In function 'vpd_is_valid':
> vpd.c:168:2: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> vpd.c:169:2: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> vpd.c:178:2: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> vpd.c: In function 'vpd_get_data':
> vpd.c:281:6: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> vpd.c:291:6: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> vpd.c:297:6: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> vpd.c:302:6: warning: dereferencing type-punned pointer will break
> strict-aliasing rules [-Wstrict-aliasing]
> 
> Signed-off-by: Wolfgang Denk <wd at denx.de>
> ---
>  board/w7o/vpd.c |   26 +++++++++++++++-----------
>  1 files changed, 15 insertions(+), 11 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
Another megabytes the dust.


More information about the U-Boot mailing list