Re: You can now freely mix declarations and statements in all Mozilla C code

2015-09-10 Thread Nicholas Nethercote
On Thu, Sep 10, 2015 at 7:01 AM, Eric Rescorla wrote: > >> 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

Re: You can now freely mix declarations and statements in all Mozilla C code

2015-09-10 Thread Eric Rescorla
On Wed, Sep 9, 2015 at 5:41 PM, Nicholas Nethercote 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 c

Re: You can now freely mix declarations and statements in all Mozilla C code

2015-09-10 Thread Neil
Nicholas Nethercote wrote: Therefore, 16 years later, you can now mix statements and declarations freely in Mozilla C code. We still have Mozilla C code? -- Warning: May contain traces of nuts. ___ dev-platform mailing list dev-platform@lists.mozi

You can now freely mix declarations and statements in all Mozilla C code

2015-09-09 Thread Nicholas Nethercote
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 wi