Hi, In C89 you can't mix declarations and statements, i.e. you have to declare local variables at the top of a block. C99 relaxed this annoying restriction, but MSVC did not add support for it for a long time, so with GCC we compile with -Wdeclaration-after-statement even though we also compile with -std=gnu99.
Until now, that is. MSVC 2013 finally added support for this relaxation, and https://bugzilla.mozilla.org/show_bug.cgi?id=1203005 changed things to allow it everywhere. Therefore, 16 years later, you can now mix statements and declarations freely in Mozilla C code. Nick _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform