Non-void function not having an explicit value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux