On Thu, Nov 04, 2004 at 12:40:07PM -0600, Jack O'Quin wrote:
Chris Cannam <cannam(a)all-day-breakfast.com>
writes:
On Thursday 04 Nov 2004 16:18, Jack O'Quin
wrote:
While you're at it, it doesn't compile
with gcc-2.95 either (due to
C99-style declarations in the middle of compound statements)...
Damn it, I hate the fact that C allows that now. I only ever do it by
accident (the C++ side of my brain taking over) and it bothers me that the
compiler no longer rejects it.
While the language change is clearly an improvement, it's annoying
because portable programs still need to support the old compilers for
a few more years.
I'd think gcc-3.x would have an option to warn about this usage.
Yes, so would I, I think it should do it if you specify --std=c89, but it
doesn't seem to. There may be some -W flag I've missed.
- Steve