Re: [dpdk-dev] [PATCH] devtools: forbid variable declaration inside for

2020-03-23 Thread Thomas Monjalon
23/03/2020 14:59, Bruce Richardson: > On Mon, Feb 17, 2020 at 11:26:54PM +0100, Thomas Monjalon wrote: > > Some compilers raise an error when declaring a variable > > in the middle of a function. This is a C99 allowance. > > Even if DPDK switches globally to C99 or C11 standard, > > the coding rule

Re: [dpdk-dev] [PATCH] devtools: forbid variable declaration inside for

2020-03-23 Thread Bruce Richardson
On Mon, Feb 17, 2020 at 11:26:54PM +0100, Thomas Monjalon wrote: > Some compilers raise an error when declaring a variable > in the middle of a function. This is a C99 allowance. > Even if DPDK switches globally to C99 or C11 standard, > the coding rules are for declarations at the beginning > of a

Re: [dpdk-dev] [PATCH] devtools: forbid variable declaration inside for

2020-03-23 Thread Thomas Monjalon
23/03/2020 14:40, David Marchand: > On Mon, Feb 17, 2020 at 11:27 PM Thomas Monjalon wrote: > > > > Some compilers raise an error when declaring a variable > > in the middle of a function. This is a C99 allowance. > > Even if DPDK switches globally to C99 or C11 standard, > > the coding rules are

Re: [dpdk-dev] [PATCH] devtools: forbid variable declaration inside for

2020-03-23 Thread David Marchand
On Mon, Feb 17, 2020 at 11:27 PM Thomas Monjalon wrote: > > Some compilers raise an error when declaring a variable > in the middle of a function. This is a C99 allowance. > Even if DPDK switches globally to C99 or C11 standard, > the coding rules are for declarations at the beginning > of a block

[dpdk-dev] [PATCH] devtools: forbid variable declaration inside for

2020-02-17 Thread Thomas Monjalon
Some compilers raise an error when declaring a variable in the middle of a function. This is a C99 allowance. Even if DPDK switches globally to C99 or C11 standard, the coding rules are for declarations at the beginning of a block: http://doc.dpdk.org/guides/contributing/coding_style.html#local-var