How do I disable a gcc warning which has no command line switch? : <p>I get the following warning:</p>

<pre><code>warning: 'X' is initialized and declared 'extern'
</code></pre>

<p>and it <a href="https://stackoverflow.com/a/21585233/57428">looks like it's no big deal</a> and I could disable it. Changing the code is not really a good idea in my case because I have no control over the code, I just need to compile it. So I want to disable the warning.</p>

<p>If it had a <code>-WSomeDefect</code> key next to it then I could use a <code>-Wno-SomeDefect</code> command line switch but it looks like there's no distinct switch for this warning.</p>

<p>How do I disable such warning? </p>
