diff options
author | Alan Modra <amodra@gmail.com> | 2010-07-06 09:24:05 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2010-07-06 09:24:05 +0000 |
commit | d3dbc53042f0e29120fe037b1ebaca342fe71ad2 (patch) | |
tree | 68c5eca887d2c53cc6fd8add7b32032ee09755e5 /binutils/readelf.c | |
parent | 30cfc97a80d6823ca7a7c860d5daa682d456df43 (diff) | |
download | gdb-d3dbc53042f0e29120fe037b1ebaca342fe71ad2.zip gdb-d3dbc53042f0e29120fe037b1ebaca342fe71ad2.tar.gz gdb-d3dbc53042f0e29120fe037b1ebaca342fe71ad2.tar.bz2 |
* readelf.c (uncompress_section_contents): Avoid gcc-4.6 warning.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 1c3cb8b..b16fa7a 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -9869,12 +9869,10 @@ dump_section_as_bytes (Elf_Internal_Shdr * section, This is a copy of bfd_uncompress_section_contents, in bfd/compress.c */ static int -uncompress_section_contents (unsigned char ** buffer, dwarf_size_type * size) +uncompress_section_contents (unsigned char **buffer ATTRIBUTE_UNUSED, + dwarf_size_type *size ATTRIBUTE_UNUSED) { #ifndef HAVE_ZLIB_H - /* These are just to quiet gcc. */ - buffer = 0; - size = 0; return FALSE; #else dwarf_size_type compressed_size = *size; |