* readelf.c (uncompress_section_contents): Avoid gcc-4.6 warning.
authorAlan Modra <amodra@gmail.com>
Tue, 6 Jul 2010 09:24:05 +0000 (09:24 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 6 Jul 2010 09:24:05 +0000 (09:24 +0000)
binutils/ChangeLog
binutils/readelf.c

index 74d22edf99866e5286ace55d26eec6203804a015..ab10e486c2b7f7de6aa84c23d8a66356a8820048 100644 (file)
@@ -1,3 +1,7 @@
+2010-07-05  Alan Modra  <amodra@gmail.com>
+
+       * readelf.c (uncompress_section_contents): Avoid gcc-4.6 warning.
+
 2010-07-03  Cary Coutant  <ccoutant@google.com>
 
        * objdump.c (load_specific_debug_section): Decompress section contents
index 1c3cb8b2864dc94f55c6e0bc6a9684b65582a815..b16fa7a3d4690d922994ff5f537680179b084dad 100644 (file)
@@ -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;