From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15658 invoked by alias); 8 Sep 2007 12:33:27 -0000 Received: (qmail 15648 invoked by uid 22791); 8 Sep 2007 12:33:26 -0000 X-Spam-Check-By: sourceware.org Received: from ns.suse.de (HELO mx1.suse.de) (195.135.220.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 08 Sep 2007 12:33:20 +0000 Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 6ACB71629C; Sat, 8 Sep 2007 14:33:18 +0200 (CEST) From: Andreas Schwab To: Vladimir Prus Cc: Eli Zaretskii , gdb-patches@sources.redhat.com Subject: Re: [7/9] simplify pending breakpoints References: <200709080150.05068.vladimir@codesourcery.com> <200709081543.45598.vladimir@codesourcery.com> X-Yow: If I had a Q-TIP, I could prevent th'collapse of NEGOTIATIONS!! Date: Sat, 08 Sep 2007 12:33:00 -0000 In-Reply-To: <200709081543.45598.vladimir@codesourcery.com> (Vladimir Prus's message of "Sat\, 8 Sep 2007 15\:43\:45 +0400") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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: 2007-09/txt/msg00119.txt.bz2 Vladimir Prus writes: > On Saturday 08 September 2007 15:26:36 Eli Zaretskii wrote: >> > From: Vladimir Prus >> > Date: Sat, 8 Sep 2007 01:50:04 +0400 >> > >> > @@ -5422,12 +5355,9 @@ break_command_1 (char *arg, int flag, in >> > } >> > else >> > { >> > - struct symtab_and_line sal; >> > + struct symtab_and_line sal = {}; >> >> Is this a valid initializer in ISO C? I think it isn't; at least >> under -pedantic, GCC says: >> >> ttt.c: In function `foo': >> ttt.c:6: warning: ISO C forbids empty initializer braces > > Ehm. Then do I have to resort to 'memset' to initialize it? {0} will do. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."