> Uh, C89 is an ANSI/ISO C.
I'm not enough of a language lawyer to know when various features came
into to the language, but
gcc -std=c89 test.c
does *NOT* warn about declaration ordering issues. At least not with
gcc version 3.3.4 (Debian 1:3.3.4-6sarge1)
- Sam Ruby
Please be careful to avoid definitions after code. This doesn't compile
with C89 compilers like gcc 2.95.3
leo
If I remember correctly, MS Visual Studio *will* emit errors for this (I
used VS 6.0, a long time ago).
Klaas-Jan
> Sorry about that.
>
> Stupid question: why don't we compile with an option that flags such
> things? Example:
>
> $ gcc -Wtraditional test.c
> test.c: In function `main':
> test.c:3: warning: traditional C rejects ISO C style function definitions
>
> - Sam Ruby
>
Sorry about that.
Just to be clear - I have nothing against the policy that Parrot will be
able to compiled on these compilers. I just want to shift more of the
the burden from the victims to the perpetrator (me!).
- Sam Ruby