This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: -Wimplicit
- From: Elias Athanasopoulos <eathan at otenet dot gr>
- To: Daniel Jacobowitz <drow at mvista dot com>
- Cc: gdb at sources dot redhat dot com, gcc-bugs at gcc dot gnu dot org
- Date: Mon, 4 Nov 2002 20:31:47 +0200
- Subject: Re: -Wimplicit
- References: <20021104185751.B2076@neutrino.particles.org> <20021104154252.GB20768@nevyn.them.org>
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