On Wed, 16 Mar 2011, Tom Tromey wrote:

> It seems ok to me to accept it as a GNU extension.
> But, it still doesn't warn with -std=c89 or -std=c99.
> -pedantic seems too heavy for this, to me.

It is not the function of -std to enable diagnostics for extensions; 
that's the function of -pedantic.  This (returning void expressions from a 
function returning void) is an extension that's standard in C++; it should 
probably be documented as an extension in GNU C if it isn't already 
documented.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to