This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cc1: warning: unrecognized command line option "-Wno-narrowing"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]