This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
another gcc-4.5 warning fix
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Tue, 6 Jul 2010 18:53:26 +0930
- Subject: another gcc-4.5 warning fix
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