On Sun, Feb 26, 2017 at 6:34 PM, <ok@cs.otago.ac.nz> wrote:
If nothing else, it would be nice to have a "dead code" warning
from the compiler about code that is certain not to be evaluated.
"2" counts as dead code in this example.

I did point out that -Wall includes a warning for this earlier... and "dead code" warnings in most compilers require optimization.

--
brandon s allbery kf8nh                               sine nomine associates
allbery.b@gmail.com                                  ballbery@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net