Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Neil Booth <neil@daikokuya.co.uk>
To: Elias Athanasopoulos <eathan@otenet.gr>, gdb@sources.redhat.com
Cc: gcc-patches@gcc.gnu.org
Subject: Re: -Wimplicit
Date: Sat, 09 Nov 2002 04:36:00 -0000	[thread overview]
Message-ID: <20021109123626.GA10331@daikokuya.co.uk> (raw)
In-Reply-To: <20021104154252.GB20768@nevyn.them.org>

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)			     \


      parent reply	other threads:[~2002-11-09 12:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-04  7:37 -Wimplicit Elias Athanasopoulos
2002-11-04  7:42 ` -Wimplicit Daniel Jacobowitz
2002-11-04  9:12   ` -Wimplicit Elias Athanasopoulos
2002-11-09  4:36   ` Neil Booth [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021109123626.GA10331@daikokuya.co.uk \
    --to=neil@daikokuya.co.uk \
    --cc=eathan@otenet.gr \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox