[U-Boot] [PATCHv2] dlmalloc.c: Fix gcc alias warning
Mike Frysinger
vapier at gentoo.org
Thu Oct 14 19:52:56 CEST 2010
On Thursday, October 14, 2010 02:51:34 Joakim Tjernlund wrote:
> Fix these warnings:
> dlmalloc.c: In function 'free':
> dlmalloc.c:2507: warning: dereferencing pointer '({anonymous})' does break
> strict-aliasing rules dlmalloc.c:2507: warning: dereferencing pointer
> '({anonymous})' does break strict-aliasing rules dlmalloc.c:2507: warning:
> dereferencing pointer '({anonymous})' does break strict-aliasing rules
>
> Some
> page(http://blog.worldofcoding.com/2010/02/solving-gcc-44-strict-aliasing-
> problems.html) suggests adding __attribute__((__may_alias__)). Doing so
> makes the warnings go away.
thanks ... i think this is a good stop-gap workaround
Acked-by: Mike Frysinger <vapier at gentoo.org>
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20101014/695f94fd/attachment.pgp
More information about the U-Boot
mailing list