public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Paolo Carlini <pcarlini@gmail.com>
To: Jason Merrill <jason@redhat.com>
Cc: Jonathan Wakely <jwakely.gcc@gmail.com>,
	Michael Meissner <meissner@linux.vnet.ibm.com>,
	Ralf Corsepius <ralf.corsepius@rtems.org>,
	"gcc@gcc.gnu.org" <gcc@gcc.gnu.org>,
	JoelSherrill <joel.sherrill@oarcorp.com>
Subject: Re: cc1: warning: unrecognized command line option "-Wno-narrowing"
Date: Tue, 08 Nov 2011 22:51:00 -0000	[thread overview]
Message-ID: <B2E5BC8A-753C-492D-AAF8-1C1219C0C314@gmail.com> (raw)
In-Reply-To: <4EB99613.3000105@redhat.com>

Hi,

> On 11/08/2011 03:22 PM, Paolo Carlini wrote:
>> I believe that the core issue is pretty clear: -Wno-narrowing disables a C++ only warning but somehow we are passing it also in a few C compiler invocations, thus the driver warns.
> 
> No, it's accepted by the C front end too, it just has no effect.

I see. Actually I'm clear about the no effect thing and also that the warning isn't really worrisome. But I thought that  the front end in general warns for such no effects warnings. I didn't really study the relevant code, to be honest.

Paolo

  reply	other threads:[~2011-11-08 20:57 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-06 15:04 Ralf Corsepius
2011-11-08 20:23 ` Michael Meissner
2011-11-08 20:57   ` Jonathan Wakely
2011-11-08 22:01     ` Jason Merrill
2011-11-08 22:13     ` Paolo Carlini
2011-11-08 22:22       ` Jason Merrill
2011-11-08 22:51         ` Paolo Carlini [this message]
2011-11-09  0:27         ` Andreas Schwab
2011-11-09  8:04           ` Andreas Schwab

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=B2E5BC8A-753C-492D-AAF8-1C1219C0C314@gmail.com \
    --to=pcarlini@gmail.com \
    --cc=gcc@gcc.gnu.org \
    --cc=jason@redhat.com \
    --cc=joel.sherrill@oarcorp.com \
    --cc=jwakely.gcc@gmail.com \
    --cc=meissner@linux.vnet.ibm.com \
    --cc=ralf.corsepius@rtems.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).