From b0d32fb61e974e283300e836c34cfaa94ab1c03d Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 16 Feb 2012 14:57:02 +0000 Subject: [PATCH] 2012-02-16 Josh Matthews * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure. --- gdb/ChangeLog | 4 ++++ gdb/machoread.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 699d12a3781..66faf85bc42 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2012-02-16 Josh Matthews + + * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure. + 2012-02-16 Tom Tromey PR c++/13653: diff --git a/gdb/machoread.c b/gdb/machoread.c index 9fa97e15395..88ce612bfee 100644 --- a/gdb/machoread.c +++ b/gdb/machoread.c @@ -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 -- 2.30.2