Fix strict-aliasing warning in dlmalloc
authorSimon Glass <sjg@chromium.org>
Tue, 4 Sep 2012 11:31:07 +0000 (11:31 +0000)
committerAndreas Bießmann <andreas.devel@googlemail.com>
Thu, 13 Sep 2012 11:32:41 +0000 (13:32 +0200)
commit93691842e8dc86e6b2cb148c7c60a168654bbc34
treed912399c27d75842db47b97135aaadb78fb924c0
parenta6f0c4faa4c65a7b7048b12c9d180d7e1aad1721
Fix strict-aliasing warning in dlmalloc

This fixes the following warnings in dlmalloc seen with my gcc 4.6.

dlmalloc.c: In function 'malloc_bin_reloc':
dlmalloc.c:1493: warning: dereferencing pointer 'p' does break strict-aliasing rules
dlmalloc.c:1493: warning: dereferencing pointer 'p' does break strict-aliasing rules
dlmalloc.c:1490: note: initialized from here
dlmalloc.c:1493: note: initialized from here

This version is tested on avr32 arch boards.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
common/dlmalloc.c