From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8908 invoked by alias); 8 Feb 2012 09:06:00 -0000 Received: (qmail 8898 invoked by uid 22791); 8 Feb 2012 09:05:59 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,TW_BJ X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Feb 2012 09:05:46 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 58D69290060; Wed, 8 Feb 2012 10:05:46 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GLcy0exdIpjG; Wed, 8 Feb 2012 10:05:46 +0100 (CET) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 47645290058; Wed, 8 Feb 2012 10:05:46 +0100 (CET) Subject: Re: Another Darwin build fix Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: Tristan Gingold In-Reply-To: Date: Wed, 08 Feb 2012 09:06:00 -0000 Cc: gdb-patches@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Josh Matthews X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00097.txt.bz2 On Feb 7, 2012, at 9:47 PM, Josh Matthews wrote: > The system default gcc on 10.6.8 hits an uninitialized value warning > which causes the build to fail. Ok, looks safe :-) Do you need me to commit it ? Thanks, Tristan. PS: the rule is to post the ChangeLog entry as is and not as a diff. Also,= no comment after your email address. ie: 2012-02-07 Josh Matthews Fix build error in Darwin port * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failu= re. >=20 > Cheers, > Josh >=20 > diff --git a/gdb/ChangeLog b/gdb/ChangeLog > index f85f139..73803fd 100644 > --- a/gdb/ChangeLog > +++ b/gdb/ChangeLog > @@ -1,3 +1,8 @@ > +2012-02-07 Josh Matthews (tiny change) > + > + Fix build error in Darwin port. > + * machoread.c: Initialize nbr_syms to avoid warnings-as-errors fa= ilure. > + > 2012-02-07 Tom Tromey >=20 > * charset.c (find_charset_names): Check 'in' against NULL. > diff --git a/gdb/machoread.c b/gdb/machoread.c > index 9fa97e1..88ce612 100644 > --- a/gdb/machoread.c > +++ b/gdb/machoread.c > @@ -180,7 +180,7 @@ macho_symtab_read (struct objfile *objfile, > const asymbol *dir_so =3D NULL; > const asymbol *file_so =3D NULL; > asymbol **oso_file =3D NULL; > - unsigned int nbr_syms; > + unsigned int nbr_syms =3D 0; >=20 > /* Current state while reading stabs. */ > enum