Re: New ARI warning Wed May 23 01:55:03 UTC 2012

Tom Tromey
2012-06-22T17:41:30Z

>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

>> * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
>> * configure: Regenerate.

Yes, ok. Thanks; I hadn't realized there was a flag for this already :)

Discussion on irc pointed out that this is still allowed:

for (int i = 0; ...)

I think this doesn't suffer from the readability problems that
declarations in the code generally do; and in fact usually makes the
code cleaner, by restricting the scope of the loop variable.

How about we flip the switch to C99 for 7.6?

Tom