PATCH Fix objdump.c warning

Aaron W. LaFramboise aaron98wiridge9@aaronwl.com
Fri Mar 25 16:45:00 GMT 2005


On Windows, I get this error on build with GCC 3.4.3.

gcc -DHAVE_CONFIG_H -I.
-I/aaronwl/cs/compilers/binutils/src/cvs/src/binutils -I
. -D_GNU_SOURCE -I.
-I/aaronwl/cs/compilers/binutils/src/cvs/src/binutils -I../b
fd -I/aaronwl/cs/compilers/binutils/src/cvs/src/binutils/../bfd
-I/aaronwl/cs/co
mpilers/binutils/src/cvs/src/binutils/../include -D__USE_MINGW_FSEEK
-I/aaronwl/
cs/compilers/binutils/src/cvs/src/binutils/../intl -I../intl
-DLOCALEDIR="\"/aar
onwl/cs/env/mingw-head/20040323/share/locale\""
-Dbin_dummy_emulation=bin_vanill
a_emulation   -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror
-g -O2
-c  /aaronwl/cs/compilers/binutils/src/cvs/src/binutils/objdump.c
/aaronwl/cs/compilers/binutils/src/cvs/src/binutils/objdump.c: In
function `disa
ssemble_bytes':
/aaronwl/cs/compilers/binutils/src/cvs/src/binutils/objdump.c:1379:
warning: der
eferencing type-punned pointer will break strict-aliasing rules
make[4]: *** [objdump.o] Error 1


The warning appears to be spurious, but just removing the unneeded cast
makes it go away.  OK?
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: binutils-head-20050324-sfile.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20050325/226183fc/attachment.ksh>


More information about the Binutils mailing list