[U-Boot] [PATCH] UBIFS: Fix dereferencing type-punned pointer compiler warning

Stefan Roese sr at denx.de
Tue Jan 11 11:10:12 CET 2011


On Saturday 25 December 2010 10:58:46 Dirk Behme wrote:
> Fix compiler warning
> 
> In file included from ubifs.h:2137:0,
>                  from ubifs.c:26:
> misc.h: In function 'ubifs_idx_key':
> misc.h:263:26: warning: dereferencing type-punned pointer will break
> strict-aliasing rules
> 
> seen with gcc version 4.5.1 (Sourcery G++ Lite 2010.09-50).
> 
> No functional change.

Applied to u-boot-ubi. Thanks.
 
Cheers,
Stefan

--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de


More information about the U-Boot mailing list