No error or warning

Dariush Eslimi eslimi@loran.com
Mon Sep 20 09:56:00 GMT 1999


Hi;
I am using gcc 2.95 and it is not complaining about functions with return
value defined but no return statement even with -WAll switch.
You can try the following code.

Thanks,
Dariush

int func()
{
}
//-------------------------------------
main(int argc,char **argv)
{
printf("%d\n",func());
}




More information about the Gcc-bugs mailing list