This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
warning fixes
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Wed, 17 Mar 2010 18:26:30 +1030
- Subject: warning fixes
Silences older versions of gcc. Committed.
bfd/
* elf32-arm.c (cortex_a8_erratum_scan): Warning fix.
binutils/
* readelf.c (dump_arm_unwind): Warning fix.
Index: bfd/elf32-arm.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-arm.c,v
retrieving revision 1.227
diff -u -p -r1.227 elf32-arm.c
--- bfd/elf32-arm.c 4 Mar 2010 17:16:08 -0000 1.227
+++ bfd/elf32-arm.c 17 Mar 2010 07:37:37 -0000
@@ -4080,7 +4080,7 @@ cortex_a8_erratum_scan (bfd *input_bfd,
&& last_was_32bit
&& ! last_was_branch)
{
- bfd_signed_vma offset;
+ bfd_signed_vma offset = 0;
bfd_boolean force_target_arm = FALSE;
bfd_boolean force_target_thumb = FALSE;
bfd_vma target;
Index: binutils/readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.488
diff -u -p -r1.488 readelf.c
--- binutils/readelf.c 5 Mar 2010 21:04:57 -0000 1.488
+++ binutils/readelf.c 17 Mar 2010 07:37:51 -0000
@@ -6276,7 +6276,7 @@ dump_arm_unwind (struct arm_unw_aux_info
}
else
{
- bfd_vma table, table_offset;
+ bfd_vma table, table_offset = 0;
Elf_Internal_Shdr *table_sec;
fputs ("@", stdout);
--
Alan Modra
Australia Development Lab, IBM