https://issues.dlang.org/show_bug.cgi?id=23266

--- Comment #2 from FeepingCreature <[email protected]> ---
I've tried a DMD branch that errors with -w if `if()` has a statically known
true condition and an else block. The two main things I ran into in Phobos are:

1.
if (false) {
  some code that should affect function attributes but never be run; 
}

2.
if (...) that should be static if (...)

For one the warning is useful, for the other it's harmful...

--

Reply via email to