Re: [PATCH] KEYS: Replace zero-length array with flexible-array

2020-05-18 Thread Gustavo A. R. Silva
On Mon, May 18, 2020 at 04:14:24PM +0100, David Howells wrote: > > > > Signed-off-by: Gustavo A. R. Silva > > Applied to keys-next. > Thanks, David. -- Gustavo

Re: [PATCH] KEYS: Replace zero-length array with flexible-array

2020-05-18 Thread David Howells
Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced in C99: > > struct foo { > int

Re: [PATCH] KEYS: Replace zero-length array with flexible-array

2020-05-13 Thread Jarkko Sakkinen
On Thu, May 07, 2020 at 01:57:10PM -0500, Gustavo A. R. Silva wrote: > The current codebase makes use of the zero-length array language > extension to the C90 standard, but the preferred mechanism to declare > variable-length types such as these ones is a flexible array member[1][2], > introduced

[PATCH] KEYS: Replace zero-length array with flexible-array

2020-05-07 Thread Gustavo A. R. Silva
The current codebase makes use of the zero-length array language extension to the C90 standard, but the preferred mechanism to declare variable-length types such as these ones is a flexible array member[1][2], introduced in C99: struct foo { int stuff; struct boo array[]; }; By