title: warning: control reaches end of non-void function
body: <p>I have a function named </p>
  
  <pre><code>void *func(void *arg)
  {
      ///does some operation
  }
  </code></pre>
  
  <p>Now I am getting a compiler warning that  "control reaches end of non-void function" even though i declare the return type as <code>void *</code>.</p>
  
  <p>Can anyone please tell me how to fix up this warning?</p>