This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH to warn about inlines which fail to return a value
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Jason Merrill <jason at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Sat, 02 Feb 2002 19:16:36 -0800
- Subject: 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