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

Jason Merrill jason@redhat.com
Tue Nov 8 22:22:00 GMT 2011


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.  It's 
listed as a C option in c.opt.  But during builds cc1 warns about it 
sometimes and not others.  It's very odd.

Jason



More information about the Gcc mailing list