title: Is there a way to get VS2008 to stop warning me about unreachable code?
body: <p>I have a few config options in my application along the lines of </p>
  
  <pre><code>const bool ExecuteThis=true;
  const bool ExecuteThat=false;
  </code></pre>
  
  <p>and then code that uses it like</p>
  
  <pre><code>if(ExecuteThis){ DoThis(); }
  if(ExecuteThat){ DoThat(); } //unreachable code warning here
  </code></pre>
  
  <p>The thing is, we may make slightly different releases and not ExecuteThis or ExecuteThat and we want to be able to use consts so that we don't have any speed penalties from such things at run time. But I am tired of seeing warnings about unreachable code. I'm a person that likes to eliminate all of the warnings, but I can't do anything about these. Is there some option I can use to turn just these warnings off?</p>