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: Tim Barnett <tim dot barnett at tnuk dot co dot uk>
- To: nathan at gcc dot gnu dot org, 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
- Date: Sat, 14 Sep 2002 09:09:34 +0100
- Subject: RE: c++/7551: g++ does not mind non-void functions which return no value.
Source file consisting of the following two lines:
int foo(void) { }
int main(void) { return foo(); }
Gives no warning.
-----Original Message-----
From: nathan@gcc.gnu.org [mailto:nathan@gcc.gnu.org]
Sent: 14 September 2002 00:08
To: Tim.Barnett@hekate.org.uk; gcc-bugs@gcc.gnu.org;
gcc-prs@gcc.gnu.org; nobody@gcc.gnu.org
Subject: Re: c++/7551: g++ does not mind non-void functions which return
no value.
Synopsis: g++ does not mind non-void functions which return no value.
State-Changed-From-To: open->feedback
State-Changed-By: nathan
State-Changed-When: Fri Sep 13 16:07:57 2002
State-Changed-Why:
please provide source
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&p
r=7551