This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Enable -Wreturn-type by default ?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]