On August 13, 2015 11:08:19 AM "Henry So Jr." <[email protected]> wrote:
On Thursday, 13 August 2015 at 04:47:06 pm +0200, Élie Roux wrote:
> My concern is that the "don't mix code with declarations" limitation
> will be difficult to enforce unless the compiler is enforcing it. I
> haven't had time to go through the compiler documentation for clang
> and/or gcc to see if there is a flag we can use for this.
-Wdeclaration-after-statement should do for gcc (untested though).
I gave that a quick try. It's not catching declarations in the for
statements in either gcc or clang.
The best compromise I can come up with is to target std=gnu90 and enable
pedantic warnings. In addition to the things indicated by the patch, we
would not be able to have trailing commas in enum declarations.
I'll work on this tonight.
Henry
_______________________________________________
Gregorio-devel mailing list
[email protected]
https://mail.gna.org/listinfo/gregorio-devel