aboutsummaryrefslogtreecommitdiff
path: root/bfd/compress.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-06-28 14:41:11 +0000
committerAlan Modra <amodra@gmail.com>2010-06-28 14:41:11 +0000
commit3f062f4418c6e4ec98f5b0f96b5eb4db34e1e85f (patch)
tree8d8e7e251d7b940558cd1f0c492495223faa0879 /bfd/compress.c
parent87975d2a60adf249212c1c031abb4dd0dbb800ac (diff)
downloadgdb-3f062f4418c6e4ec98f5b0f96b5eb4db34e1e85f.zip
gdb-3f062f4418c6e4ec98f5b0f96b5eb4db34e1e85f.tar.gz
gdb-3f062f4418c6e4ec98f5b0f96b5eb4db34e1e85f.tar.bz2
* compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSED
to silence gcc warning.
Diffstat (limited to 'bfd/compress.c')
-rw-r--r--bfd/compress.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/bfd/compress.c b/bfd/compress.c
index 5b6ee0e..e074eca 100644
--- a/bfd/compress.c
+++ b/bfd/compress.c
@@ -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;