https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111400
--- Comment #6 from Sam James <sjames at gcc dot gnu.org> --- (In reply to David Brown from comment #4) > (In reply to Andreas Schwab from comment #3) > > You already have -W[error=]return-type. > > Yes, and that is what I normally use - I am a big fan of gcc's static > warnings. > > Sometimes, however, there are false positives, or perhaps other reasons why > the programmer thinks it is safe to ignore the warning in a particular case. Note that we now have -Wreturn-mismatch for definite errors.