-Wimplicit
Elias Athanasopoulos
eathan@otenet.gr
Mon Nov 4 09:12:00 GMT 2002
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
More information about the Gdb
mailing list