Control reaches end of non-void function: why only a warning?

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

 



The following code generates the warning "control reaches end of
non-void function" under g++ 3.4.2:

int g()
{
}

Why is this only a warning and not an error?

-- 
Pierre Sarrazin <sarrazip at sympatico dot ca>

[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