From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4928 invoked by alias); 19 Sep 2002 11:31:52 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 4917 invoked from network); 19 Sep 2002 11:31:51 -0000 Received: from unknown (HELO Cantor.suse.de) (213.95.15.193) by sources.redhat.com with SMTP; 19 Sep 2002 11:31:51 -0000 Received: from Hermes.suse.de (Charybdis.suse.de [213.95.15.201]) by Cantor.suse.de (Postfix) with ESMTP id A85F714AD0; Thu, 19 Sep 2002 13:31:50 +0200 (MEST) X-Authentication-Warning: sykes.suse.de: schwab set sender to schwab@suse.de using -f To: Eli Zaretskii Cc: Joel Brobecker , gdb-patches@sources.redhat.com Subject: Re: Should we fix warnings from GCC 2.xx? References: X-Yow: I just had a MAJOR CONTRACT DISPUTE with SUZANNE SOMERS!! From: Andreas Schwab Date: Thu, 19 Sep 2002 04:31:00 -0000 In-Reply-To: (Eli Zaretskii's message of "Thu, 19 Sep 2002 13:09:18 +0200 (IST)") Message-ID: User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.3.50 (ia64-suse-linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2002-09/txt/msg00463.txt.bz2 Eli Zaretskii writes: |> On Wed, 11 Sep 2002, Joel Brobecker wrote: |> |> > > tracepoint.c: In function `trace_find_tracepoint_command': |> > > tracepoint.c:2077: warning: suggest explicit braces to avoid ambiguous `else' |> > |> > This warning appears with a GCC 2.8.1-based compiler, but does not |> > with GCC 3.0.4. Hence my question, do we want to fix these warnings |> > anyway? GCC 2.8 warns in one case where GCC 2.95+ does not: if (foo) if (bar) ; else ; else ; |> FWIW, I'm still using GCC 2.7.2.1 on one of my machines. GCC 2.7 does not have this warning in the first place. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."