On Wed, Sep 9, 2015 at 5:41 PM, Nicholas Nethercote <n.netherc...@gmail.com> wrote:
> 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. > Note: this does not apply to NSS and NSPR, though those need separate commit rights, so if you work on them you probably already know this. -Ekr _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform