On 10/24/2011 09:06 AM, Jason Merrill wrote:
On 10/24/2011 07:47 AM, Paolo Carlini wrote:
the below is a new variant removing -Wc++0x-compat from -Wall (cannot be
added to -Wextra either because bootstrap passes -W)

I don't understand the rationale for this. If the warning is problematic
for bootstrap, why not just add -Wno-narrowing to the bootstrap warning
flags? I haven't read the whole discussion thread yet, though.

OK, I read it and still think this is the right solution.

and also, as
requested by Gaby, preventing -Wno-narrowing from suppressing the
warning in C++0x mode (if the user really needs to silence it,
-Wno-c++0x-compat works). I also added a new testcase for that.

No. I added -Wno-narrowing specifically to suppress the diagnostic in
C++0x mode; see c++/49793. There are several diagnostics required by
standards that can be suppressed by -Wno- flags, such as -Wno-long-long.

...but I'm not strongly opposed to renaming the option, so long as its function remains.

Jason

Reply via email to