This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

fix build error


gcc-4.3 complains (incorrectly) that sym might be used unitialised.

	* objdump.c (objdump_print_addr): Initialise "sym".

Index: binutils/objdump.c
===================================================================
RCS file: /cvs/src/src/binutils/objdump.c,v
retrieving revision 1.138
diff -u -p -r1.138 objdump.c
--- binutils/objdump.c	26 Feb 2008 08:44:10 -0000	1.138
+++ binutils/objdump.c	1 Mar 2008 06:53:18 -0000
@@ -877,7 +877,7 @@ objdump_print_addr (bfd_vma vma,
 		    bfd_boolean skip_zeroes)
 {
   struct objdump_disasm_info *aux;
-  asymbol *sym;
+  asymbol *sym = NULL;
   bfd_boolean skip_find = FALSE;
 
   aux = (struct objdump_disasm_info *) info->application_data;

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]