title: Ignore warnings from framework headers on OS X
body: <p>When including external library headers in my C++ project I can use <code>-isystem</code> flag instead of <code>-I</code> (at least for GCC or Clang) to mark particular include directory as system libraries directory. This way compiler won't report any warnings regarding the code of external libraries.</p>
  
  <p>Is there any way to do this with OS X framework headers, which are not passed to compiler using <code>-I</code> flags but using <code>-F</code> flag pointing to the directory framework is located in?</p>
  
  <p><strong>Example</strong></p>
  
  <p>Compilation command:</p>
  
  <pre><code>clang++ -F/Users/user/CustomFrameworks -o test.o -c test.cpp
  </code></pre>
  
  <p>test.cpp</p>
  
  <pre><code>#include &lt;Framework/Header.h&gt;
  // ....
  </code></pre>
  
  <p>Framework structure:</p>
  
  <pre><code>$ ls /Users/user/CustomFrameworks
  Framework.framework
  $ ls /Users/user/CustomFrameworks/Framework.framework/Headers
  Header.h
  </code></pre>
  
  <p>How to ignore warnings from <code>Header.h</code>?</p>
  
  <p><strong>If only possible I'd rather not put any compiler-specific pragmas in my code.</strong></p>