This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
readelf int/long warning with -Werror breaks build
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: nickc at redhat dot com
- Cc: binutils at sourceware dot org
- Date: Wed, 31 Oct 2007 17:36:38 +0100
- Subject: readelf int/long warning with -Werror breaks build
My autotester complains about the recent commit:
gcc -O2 -m32 -DHAVE_CONFIG_H -I. -I/h/hp/binutils/cvs_latest/src/binutils -I. -I. -I/h/hp/binutils/cvs_latest/src/binutils -I../bfd -I/h/hp/binutils/cvs_latest/src/binutils/../bfd -I/h/hp/binutils/cvs_latest/src/binutils/../include -DLOCALEDIR="\"/usr/local/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c /h/hp/binutils/cvs_latest/src/binutils/readelf.c
/h/hp/binutils/cvs_latest/src/binutils/readelf.c: In function `debug_apply_relocations':
/h/hp/binutils/cvs_latest/src/binutils/readelf.c:8281: warning: long int format, int arg (arg 3)
make[4]: *** [readelf.o] Error 1
If I'd had my keys here, I'd committed the obvious long cast.
brgds, H-P