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

2020-05-07 Thread David Miller
From: "Gustavo A. R. Silva" Date: Thu, 7 May 2020 14:01: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], > introduced in

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