Void Return Statements

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

Listing: Returning void

void f(int a)
{

    /* ... */

    return; /* Always OK. */

}

void g(int b)

{

    /* ... */

    return f(b); /* Allowed when GCC extensions are on. */

}