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

2020-05-18 Thread Gustavo A. R. Silva
On Mon, May 18, 2020 at 11:16:13AM +0200, Dominik Brodowski wrote: > > > > Signed-off-by: Gustavo A. R. Silva > > Applied to pcmcia-next. > Thanks, Dominik. -- Gustavo

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

2020-05-18 Thread Dominik Brodowski
On Thu, May 07, 2020 at 02:05:49PM -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 i

[PATCH] pcmcia: 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 ma