This is the mail archive of the gcc-patches@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: C++ PATCH to warn about inlines which fail to return a value


> I think this is an obvious enough mistake that it's worth an unconditional
> warning; I've softened it somewhat by suppressing the warning if there's a
> call to a noreturn function (including __cxa_throw).  However, if people
> feel strongly that it should only be active with -Wreturn-type, I'm open
> to that.

I think it should only be active with -Wreturn-type, for consistency
with our practice in C.

FWIW,

-- 
Mark Mitchell                mark@codesourcery.com
CodeSourcery, LLC            http://www.codesourcery.com


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