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

2020-05-26 Thread Vignesh Raghavendra
On Thu, 7 May 2020 14:00:33 -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 in C99:

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

2020-05-08 Thread Miquel Raynal
Hi Gustavo, "Gustavo A. R. Silva" wrote on Thu, 7 May 2020 14:00:33 -0500: > 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], >

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