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

2020-07-03 Thread David Marchand
On Thu, May 28, 2020 at 2:30 PM David Marchand wrote: > On Sun, May 24, 2020 at 7:30 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, > > t

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

2020-05-28 Thread David Marchand
On Sun, May 24, 2020 at 7:30 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:

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

2020-05-24 Thread Stephen Hemminger
On Sun, 24 May 2020 19:30:07 +0200 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 bloc