title: How do I disable Unused Variable warnings in Eclipse in minGW?
body: <p>How can I disable the following warning in C++ in minGW?</p>
  
  <pre><code>warning: unused variable 'x' [-Wunused-variable]
  </code></pre>
  
  <p>In Eclipse CDT, I can't locate the warning number:</p>
  
  <pre><code>../src/subfolder/ClassTwo.cpp:20:8: warning: unused variable 'x' [-Wunused-variable]
  </code></pre>
  
  <p>I tried doing this:</p>
  
  <pre><code>#pragma warning(push)
  #pragma warning(disable: ？) //which number?
  #include "subfolder/ClassTwo.h"
  #pragma warning(pop)
  </code></pre>
  
  <p>But it didn't work.</p>
  
  <p>My questions:</p>
  
  <ol>
  <li>How can I get the warning number of this in Eclipse CDT?</li>
  <li>How should the pragma directive be written?</li>
  </ol>