Enable -Wreturn-type by default ?
Joseph S. Myers
joseph@codesourcery.com
Thu Jan 23 17:18:00 GMT 2014
On Wed, 22 Jan 2014, Sylvestre Ledru wrote:
> Actually, I wonder if -Wmissing-return should not be included by default ...
I don't think that's appropriate for C; control reaching the end of a
function is quite likely to mean simply that the user is writing C90 / C99
code without annotations for noreturn functions (so control can't actually
reach the end of the function but GCC can't tell that).
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc
mailing list