Re: [cfe-users] -Wunreachable-code warnings can no longer be suppressed?

2016-08-09 Thread Chris Peterson via cfe-users
On 8/6/16 9:50 AM, David Blaikie wrote: Could you provide a small example that fails (warns/doesn't suppress) with 3.9/ToT but succeeds (successfully suppresses the warning) with earlier? Thanks for testing, David. Below is a standalone test case that reproduces the insuppressible warning e

[cfe-users] -Wunreachable-code warnings can no longer be suppressed?

2016-08-05 Thread Chris Peterson via cfe-users
I suppressed a -Wunreachable-code warning in Firefox earlier this year [1] by adding extra parentheses, as suggested by Xcode's clang on OS X: objdir-osx/dom/bindings/TestJSImplGenBinding.cpp:47639:20: note: silence by adding parentheses to mark code as explicitly dead if (false && !Cal