Re: [AD] Allegro 4.2.0 RC2

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Sunday 28 August 2005 01:45 am, Michal Molhanec wrote:
> Really wonder that GCC allows "return something;" in void functions.

A void function returning a void value is valid.

void somefunc();
void anotherfunc()
{
   return somefunc();
}

..is 100% okay, AFAIK.




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/