Mail Archives: djgpp/1997/05/21/04:53:15
Erik Max Francis <max AT alcyone DOT com> wrote:
> Jason M. Daniels wrote:
>
> > No; gcc is only absolutely, 100% ANSI when used with the '-ansi' switch.
> > ('-pedantic' will complain about more things but I'm not totally sure if
> > it enforces more ANSI compliance.)
>
> It does, in at least some cases. -pendatic will make gcc complain about
> main prototypes not returning int, for instance.
Not true, at least for gcc 2.7.2 (the latest we have here at work). Nor
is that a requirement of the ANSI C specification.
It will produce a warning (and change the type to 'int') for C++, but
that
does not yet have a specification which has been ratified by ANSI, so
it's
not meaningful to talk about "more ANSI compliance".
Chris C
- Raw text -