title: Why is void used in this manner with an inline function?
body: <p>I just ran across this in some sample code and I've never seen it used before. For an inline function which returns a type but the return value is not used, the author preceded the call with a <code>(void)</code>. Does this actually do anything?</p>
  
  <p>Example:</p>
  
  <pre><code>inline some_object&amp; SomeClass::doSomething();
  
  SomeClass o;
  
  (void)o.doSomething();
  </code></pre>