On Sep 20, 2005, Stephen Pollei <[EMAIL PROTECTED]> wrote:

> it takes gcc -Wall test_proto.c --std=c99 -pedantic-errors to cause it
> not to create the a.out .
> So gcc should have caused an error as I didn't set --std=gnu99 .. bad 
> compiler.
> So I don't know howto get gcc to follow the standards in this area,
> that sounds like a good thing to require.

gnu99 is the default.  Also, the standard doesn't talk about errors or
warnings, it only requires diagnostics for ill-formed code.  Deciding
what kind of diagnostic to issue is a compiler implementation
decision.

-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
Red Hat Compiler Engineer   [EMAIL PROTECTED], gcc.gnu.org}
Free Software Evangelist  [EMAIL PROTECTED], gnu.org}

Reply via email to