Non-void function not having an explicit value

Neo Anderson neo_in_matrix@msn.com
Wed Jun 29 04:33:00 GMT 2005


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.




More information about the Gcc-help mailing list