This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: -Wimplicit
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) \