title: Clang: Promoting all Warnings to Errors Except for …
body: <p>In the project I currently am — and probably will for some time be — working on, we have decided to use the <code>-Werror</code> flag, as our previous “No warnings!” policy did not work out as intended.</p>
  
  <p>This, however, imposes a certain problem:</p>
  
  <p>API can no longer be marked as deprecated in a way that a) is flagged by the normal build toolchain, and b) doesn’t break the build.</p>
  
  <p>So I guess the question boils down to:</p>
  
  <p><strong>Is there a flag like <code>-Werror-no-${something_I_dont_want_to_promote_to_an_error}</code>?</strong></p>
  
  <p>I found <code>#pragma clang diagnostic error</code> to <em>almost</em> achieve what I want — except that I fail to catch <strong>all</strong> the warnings that are enabled <em>implicitly</em> by the compiler…</p>
  
  <p>Thanks in advance.</p>