title: Is there any way to suppress errors about missing header files in GCC?
body: <p>I need to check 2 million C source files for a research project for simple syntax errors like missing (semicolons, parenthesis, ...). Each file is a function without main() and header files.
  With the help of GCC, I have used the following command:</p>
  <pre><code>gcc -c -fsyntax-only -w file.c
  </code></pre>
  <p>My script is doing the job, but the only problem is that almost more than 95% of errors are related to missing header files. I tried to add some of these header files to each function, but the number of these header files seems endless.</p>
  <p><strong>Is there any way to suppress errors about missing header files?</strong></p>
  <p><strong>Does GCC have a special Flag that I can use for my purpose?</strong></p>
  <p>A sample of errors that are related to header files:</p>
  <pre><code>error: unknown type name ‘ioreq_t’
  error: unknown type name ‘SH7750State’
  error: unknown type name ‘int64_t’
  error: unknown type name ‘AVCodecContext’
  error: unknown type name ‘BlockDriverState’
  error: unknown type name ‘PXA2xxLCDState’
  </code></pre>
  <p>Also, I appreciate any other solution besides using GCC.</p>