This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hello,
I tried to build readelf.o on my OSX box. But it was failed by a warning like this:
- - - - - - - - - -
gcc -DHAVE_CONFIG_H -I. -I../../src/binutils -I. -I. -I../../src/binutils -I../bfd -I../../src/binutils/../bfd -I../../src/binutils/../include -I./../intl -DLOCALEDIR="\"/pizza/share/locale\"" -Dbin_dummy_emulation=bin_vanilla_emulation -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c ../../src/binutils/readelf.c
cc1: warnings being treated as errors
../../src/binutils/readelf.c: In function 'dump_section_as_strings':
../../src/binutils/readelf.c:7781: warning: format '%6zx' expects type 'size_t', but argument 2 has type 'int'
make[4]: *** [readelf.o] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-binutils] Error 2
make: *** [all] Error 2
- - - - - - - - - -
The attachment is tiny patch to fix it.
2007-10-01 Masaki Muranaka <monaka@monami-software.com>
* readelf.c (dump_section_as_strings): Add a cast to size_t.
--
Masaki Muranaka
Monami software
Attachment:
binutils-readelf.diff
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |