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

2020-03-02 Thread Bartlomiej Zolnierkiewicz
On 2/21/20 5:00 PM, 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 f

[PATCH] video: Replace zero-length array with flexible-array member

2020-02-21 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