From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4853 invoked by alias); 9 Nov 2002 12:36:35 -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 4845 invoked from network); 9 Nov 2002 12:36:35 -0000 Received: from unknown (HELO monkey.daikokuya.co.uk) (213.152.55.49) by sources.redhat.com with SMTP; 9 Nov 2002 12:36:35 -0000 Received: from neil by monkey.daikokuya.co.uk with local (Exim 3.36 #1 (Debian)) id 18AUqh-0002i8-00; Sat, 09 Nov 2002 12:36:27 +0000 Date: Sat, 09 Nov 2002 04:36:00 -0000 From: Neil Booth To: Elias Athanasopoulos , gdb@sources.redhat.com Cc: gcc-patches@gcc.gnu.org Subject: Re: -Wimplicit Message-ID: <20021109123626.GA10331@daikokuya.co.uk> 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 In-Reply-To: <20021104154252.GB20768@nevyn.them.org> User-Agent: Mutt/1.4i X-SW-Source: 2002-11/txt/msg00096.txt.bz2 Daniel Jacobowitz wrote:- > > 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'm applying this as obvious. Neil. * c-opts.c (COMMAND_LINE_OPTIONS): Fix -Wimplicit. Index: c-opts.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/c-opts.c,v retrieving revision 1.23 diff -u -p -r1.23 c-opts.c --- c-opts.c 21 Oct 2002 20:24:57 -0000 1.23 +++ c-opts.c 9 Nov 2002 12:31:25 -0000 @@ -148,7 +148,7 @@ static void sanitize_cpp_opts PARAMS ((v OPT("Wformat-y2k", CL_ALL, OPT_Wformat_y2k) \ OPT("Wformat-zero-length", CL_C, OPT_Wformat_zero_length) \ OPT("Wformat=", CL_ALL | CL_JOINED, OPT_Wformat_eq) \ - OPT("Wimplicit", CL_CXX, OPT_Wimplicit) \ + OPT("Wimplicit", CL_ALL, OPT_Wimplicit) \ OPT("Wimplicit-function-declaration", CL_C, OPT_Wimplicit_function_decl) \ OPT("Wimplicit-int", CL_C, OPT_Wimplicit_int) \ OPT("Wimport", CL_ALL, OPT_Wimport) \