* compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSED
authorAlan Modra <amodra@gmail.com>
Mon, 28 Jun 2010 14:41:11 +0000 (14:41 +0000)
committerAlan Modra <amodra@gmail.com>
Mon, 28 Jun 2010 14:41:11 +0000 (14:41 +0000)
to silence gcc warning.

bfd/ChangeLog
bfd/compress.c

index 631aa4b..a08d73b 100644 (file)
@@ -1,3 +1,8 @@
+2010-06-28  Alan Modra  <amodra@gmail.com>
+
+       * compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSED
+       to silence gcc warning.
+
 2010-06-27  Alan Modra  <amodra@gmail.com>
 
        * elf64-ppc.c (get_tls_mask): Don't segfault on NULL elf_section_data.
index 5b6ee0e..e074eca 100644 (file)
@@ -1,5 +1,5 @@
 /* ELF attributes support (based on ARM EABI attributes).
-   Copyright 2008
+   Copyright 2008, 2010
    Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -51,12 +51,10 @@ DESCRIPTION
 */
 
 bfd_boolean
-bfd_uncompress_section_contents (bfd_byte **buffer, bfd_size_type *size)
+bfd_uncompress_section_contents (bfd_byte **buffer ATTRIBUTE_UNUSED,
+                                bfd_size_type *size ATTRIBUTE_UNUSED)
 {
 #ifndef HAVE_ZLIB_H
-  /* These are just to quiet gcc.  */
-  buffer = 0;
-  size = 0;
   return FALSE;
 #else
   bfd_size_type compressed_size = *size;