diff options
author | Alan Modra <amodra@bigpond.net.au> | 2010-06-28 14:41:11 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2010-06-28 14:41:11 +0000 |
commit | f41997de4b81566468b5242b095a4d99729a5ab5 (patch) | |
tree | 7e5633cf5b986a6b925afaac62b1d42b8564b655 /bfd | |
parent | 81f0558f27536409ac9eea72a675bb872a679e80 (diff) | |
download | binutils-redhat-f41997de4b81566468b5242b095a4d99729a5ab5.tar.gz |
* compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSED
to silence gcc warning.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/compress.c | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 631aa4b965..a08d73b016 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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. diff --git a/bfd/compress.c b/bfd/compress.c index 5b6ee0e6c2..e074eca8e5 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; |