This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/7551: g++ does not mind non-void functions which return no value.
- From: nathan at gcc dot gnu dot org
- To: Tim dot Barnett at hekate dot org dot uk, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 14 Sep 2002 11:37:07 -0000
- Subject: Re: c++/7551: g++ does not mind non-void functions which return no value.
- Reply-to: nathan at gcc dot gnu dot org, Tim dot Barnett at hekate dot org dot uk, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: g++ does not mind non-void functions which return no value.
State-Changed-From-To: feedback->analyzed
State-Changed-By: nathan
State-Changed-When: Sat Sep 14 04:37:07 2002
State-Changed-Why:
confirmed. The warning is for falling off the end of a
non-void. here we have (effectively)
return (void)0;
inside a non-void fn
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7551