title: Can I exclude some specific warnings from "treat warnings as errors" without disabling them?
body: <p>In my Visual C++ code I want to have <code>/WX</code> - "treat warnings as errors". This makes me deal with each warning, including <a href="http://msdn.microsoft.com/en-us/library/ttcz0bys%28v=vs.80%29.aspx" rel="noreferrer">C4996</a> - "X was declared deprecated" which I don't want to address - I don't want to change code at the moment and I don't want to disable C4996 so that it remains in the output. So ideally I'd like to have something like:</p>
  
  <pre><code>#pragma warning( ExcludeFromWX:4996)
  </code></pre>
  
  <p>so that all warnings except this one are treated as errors when <code>/WX</code> is used and this warning is just displayed and compilation continues.</p>
  
  <p>Is it possible to get such behavior?</p>