Void Return Statements

When the GCC extensions setting is on, the compiler allows you to place expressions of type void in a return statement. Returning void shows an example.

Listing 1. Returning void
void f(int a)
{
    /* ... */
    return; /* Always OK. */
}

void g(int b)
{
    /* ... */
    return f(b); /* Allowed when GCC extensions are on. */

}