From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5476 invoked by alias); 4 Nov 2002 17:12:03 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 5341 invoked from network); 4 Nov 2002 17:12:02 -0000 Received: from unknown (HELO mailsrv.otenet.gr) (195.170.0.5) by sources.redhat.com with SMTP; 4 Nov 2002 17:12:02 -0000 Received: from neutrino.particles.org (athe530-g036.otenet.gr [212.205.218.36]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id gA4HBrcd013829; Mon, 4 Nov 2002 19:11:54 +0200 (EET) Received: (from anteater@localhost) by neutrino.particles.org (8.11.6/8.11.6) id gA4IVmC24458; Mon, 4 Nov 2002 20:31:48 +0200 Date: Mon, 04 Nov 2002 09:12:00 -0000 From: Elias Athanasopoulos To: Daniel Jacobowitz Cc: gdb@sources.redhat.com, gcc-bugs@gcc.gnu.org Subject: Re: -Wimplicit Message-ID: <20021104203146.C2076@neutrino.particles.org> References: <20021104185751.B2076@neutrino.particles.org> <20021104154252.GB20768@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20021104154252.GB20768@nevyn.them.org>; from drow@mvista.com on Mon, Nov 04, 2002 at 10:42:52AM -0500 X-SW-Source: 2002-11/txt/msg00037.txt.bz2 Hi Daniel, On Mon, Nov 04, 2002 at 10:42:52AM -0500, Daniel Jacobowitz wrote: > On Mon, Nov 04, 2002 at 06:57:51PM +0200, Elias Athanasopoulos wrote: > > Hi all, > > > > Why gdb builts with -Wimplicit? With gcc from CVS I get: > > > > cc1: warning: "-Wimplicit" is valid for C++ but not for C/ObjC > > That's a bug in GCC then; it's a valid warning in C. I agree. It seems that the bug introduced in this patch: http://gcc.gnu.org/ml/gcc-patches/2002-08/msg00214.htmli In the lines: + OPT("Wimplicit", CL_CXX, OPT_Wimplicit) \ + OPT("Wimplicit-function-declaration", CL_C, OPT_Wimplicit_function_decl) \ + OPT("Wimplicit-int", CL_C, OPT_Wimplicit_int) \ Elias