Re: [Intel-gfx] [PATCH][next] drm: i915_drm.h: Replace zero-length array with flexible-array member

2020-03-04 Thread Jani Nikula
On Tue, 03 Mar 2020, "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: My earlier

[Intel-gfx] [PATCH][next] drm: i915_drm.h: Replace zero-length array with flexible-array member

2020-03-03 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