title: Sharing Common objects - warning "defined but not used"
body: <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 define these, so that classes not using these two variables can use this header file without throwing warnings about them not being defined?</p>
  
  <p>Thank you in advance</p>