Define global variable as hash
<p>I have a number of C++ classes, alot of them (not all) share two "static size variables" e.g. </p>

<p>share.h</p>

<pre><code>/*Other variables in this header used by all classes*/

static size width=10;//Used by about 60%

static size height = 12;//used by about 60%
</code></pre>

<p>So I placed them in a header file along with other objects that all classes share.</p>

<p>when I compile the project I get alot of warnings (from the classes which dont use these), which complain about them being defined and not used. But I need them there!</p>

<p>So I ask, is there a way to hash these to prevent such warnings?</p>

<p>Hashing them so that they can be defined! preventing warnings from classes calling this header file which dont require these last two variables, but they call header because they need everything else init</p>
