<div class="gmail_quote">On Sat, Jan 14, 2012 at 5:17 PM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com">dblaikie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":34z">1) two instances of code deliberately if(false)ed out with comments<br>
explaining that developers can bring it back in once something works<br>
or to aid in debugging. I switched these to #if 0 instead - I realize<br>
this means those code snippets may bitrot since they won't be compiled<br>
anymore. Is this the right thing? Should we have some construct for<br>
"deliberately unreachable" code like this?</div></blockquote><div><br></div><div>IMHO, the weird syntax is already in use, and -Wunreachable-code shouldn't warn on this. Blatantly deliberate stuff isn't interesting to me as a compiler warning, especially as it makes debugging code very annoying. I want to be able to random place 'if (0)' into code as needed during debugging without having a -Werror build break.</div>
<div><br></div><div>I would exempt 0 and false is whole conditions, or maybe others...</div><div><br></div><div>Anyways, my 2 cents.</div></div>