Re: [PATCH v2] devtools: allow variable declaration inside for loop

2023-07-19 Thread Thomas Monjalon
> > > > > Declaring variable inside for loop is not supported via C89 and it was > > > > > checked in checkpatch.sh via commit [1]. > > > > > But as DPDK supported C standard is becoming C99/C11 [2], declaring > > > > > variable inside loop can be allowed. > > > > > > > > > > [1] > > > > > Commit 4

Re: [PATCH v2] devtools: allow variable declaration inside for loop

2023-05-03 Thread Tyler Retzlaff
On Wed, May 03, 2023 at 05:01:01PM +0200, Thomas Monjalon wrote: > 03/05/2023 14:19, Morten Brørup: > > > From: Bruce Richardson [mailto:bruce.richard...@intel.com] > > > Sent: Wednesday, 3 May 2023 12.57 > > > > > > On Wed, May 03, 2023 at 11:30:53AM +0100, Ferruh Yigit wrote: > > > > Declaring v

Re: [PATCH v2] devtools: allow variable declaration inside for loop

2023-05-03 Thread Thomas Monjalon
03/05/2023 14:19, Morten Brørup: > > From: Bruce Richardson [mailto:bruce.richard...@intel.com] > > Sent: Wednesday, 3 May 2023 12.57 > > > > On Wed, May 03, 2023 at 11:30:53AM +0100, Ferruh Yigit wrote: > > > Declaring variable inside for loop is not supported via C89 and it was > > > checked in

RE: [PATCH v2] devtools: allow variable declaration inside for loop

2023-05-03 Thread Morten Brørup
> From: Bruce Richardson [mailto:bruce.richard...@intel.com] > Sent: Wednesday, 3 May 2023 12.57 > > On Wed, May 03, 2023 at 11:30:53AM +0100, Ferruh Yigit wrote: > > Declaring variable inside for loop is not supported via C89 and it was > > checked in checkpatch.sh via commit [1]. > > But as DPDK

Re: [PATCH v2] devtools: allow variable declaration inside for loop

2023-05-03 Thread Bruce Richardson
On Wed, May 03, 2023 at 11:30:53AM +0100, Ferruh Yigit wrote: > Declaring variable inside for loop is not supported via C89 and it was > checked in checkpatch.sh via commit [1]. > But as DPDK supported C standard is becoming C99/C11 [2], declaring > variable inside loop can be allowed. > > [1] > C