2012-02-16 Josh Matthews <josh@joshmatthews.net>
authorTristan Gingold <gingold@adacore.com>
Thu, 16 Feb 2012 14:57:02 +0000 (14:57 +0000)
committerTristan Gingold <gingold@adacore.com>
Thu, 16 Feb 2012 14:57:02 +0000 (14:57 +0000)
        * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.

gdb/ChangeLog
gdb/machoread.c

index 699d12a3781a1bf212ea97255a4389b82ea9c711..66faf85bc42ea818fa67c1bcb59402b8c28a6465 100644 (file)
@@ -1,3 +1,7 @@
+2012-02-16  Josh Matthews  <josh@joshmatthews.net>
+
+       * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
+
 2012-02-16  Tom Tromey  <tromey@redhat.com>
 
        PR c++/13653:
index 9fa97e1539593718db03d1f0464e30224d92dd9f..88ce612bfee82e94a3592ab16d5a0dfdd641feb8 100644 (file)
@@ -180,7 +180,7 @@ macho_symtab_read (struct objfile *objfile,
   const asymbol *dir_so = NULL;
   const asymbol *file_so = NULL;
   asymbol **oso_file = NULL;
-  unsigned int nbr_syms;
+  unsigned int nbr_syms = 0;
 
   /* Current state while reading stabs.  */
   enum
This page took 0.028873 seconds and 4 git commands to generate.