]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix compilation warning on gcc-4.1.2.
authorPierre Muller <muller@sourceware.org>
Wed, 21 Apr 2010 08:44:51 +0000 (08:44 +0000)
committerPierre Muller <muller@sourceware.org>
Wed, 21 Apr 2010 08:44:51 +0000 (08:44 +0000)
* rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
local variable`pc' to zero.

gdb/ChangeLog
gdb/rs6000-aix-tdep.c

index a939f74ec1b627c2976f5c26ab5bf5fa9dd3977a..8f3db88cf54c395d71d3e64a0cf75d1ecf7d93c1 100644 (file)
@@ -1,3 +1,9 @@
+2010-04-21  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       Fix compilation warning on gcc-4.1.2.
+       * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
+       local variable`pc' to zero.
+
 2010-04-20  Joel Brobecker  <brobecker@adacore.com>
 
        Implement thread support with core files on alpha-tru64.
index 927cfe2da203932019f0c2e450507d2cf741de63..b7ffc8e51d3b6ce669ff89937cc75d3f15a92742 100644 (file)
@@ -583,7 +583,7 @@ rs6000_convert_from_func_ptr_addr (struct gdbarch *gdbarch,
      the target address itself points to a section that is executable.  */
   if (s && (s->the_bfd_section->flags & SEC_CODE) == 0)
     {
-      CORE_ADDR pc;
+      CORE_ADDR pc = 0;
       struct obj_section *pc_section;
       struct gdb_exception e;