title: How to silence a warning in Swift?
body: <p>I have a piece of code which is generating lots of warnings (deprecated API)</p>
  <p>Using clang* I could do:</p>
  <pre><code>#pragma clang diagnostic push
  #pragma clang diagnostic ignored &quot;-Wdeprecated-declarations&quot;
      ...
  #pragma clang diagnostic pop
  </code></pre>
  <p>However this does not work in Swift.</p>
  <p>How to do it in Swift?</p>
  <p>Note: I don't want to disable the warning globally, nor even file wide, but just disable a specific warning in a specific part of my source code.</p>
  <p>I do <em>not</em> want conditional compilation (which is the proposed answer of the supposed duplicate).
  I just want to silence a warning WITHOUT using the new APIs.</p>