title: How to turn on gcc warnings for a forgotten return statement?
body: <p>How do I turn on gcc warnings for a forgotten return statement?</p>
  
  <p>It is supposed to warn me in cases like the following:</p>
  
  <pre><code>int foo() {
    std::cout &lt;&lt; "haha";
  }
  </code></pre>
  
  <p>I know <code>-Wall</code> turns that warning on, but it enables too many other warnings.</p>