another gcc-4.5 warning fix
Alan Modra
amodra@gmail.com
Tue Jul 6 09:23:00 GMT 2010
Somehow I missed committing this with the other patches.
* readelf.c (uncompress_section_contents): Avoid gcc-4.6 warning.
Index: binutils/readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.504
diff -u -p -r1.504 readelf.c
--- binutils/readelf.c 3 Jul 2010 20:52:23 -0000 1.504
+++ binutils/readelf.c 6 Jul 2010 09:22:38 -0000
@@ -9869,12 +9869,10 @@ dump_section_as_bytes (Elf_Internal_Shdr
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;
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list