This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: cc1: warning: unrecognized command line option "-Wno-narrowing"
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