This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Non-void function not having an explicit value
- From: "Neo Anderson" <neo_in_matrix at msn dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Tue, 28 Jun 2005 18:33:33 -1000
- Subject: Non-void function not having an explicit value
- Bcc:
If I have the following *simple* code.
int test()
{
}
int main()
{
}
I compile with -Wall, but GCC 4.0 only issues two warnings on int test(),
but gives no warnings on int main(). I thought it should be an error for a
non-void function not explicitly returning a value.