On 11/01/2018 18:38, Lionel Landwerlin wrote:
On 11/01/18 12:45, Tvrtko Ursulin wrote:
[snip]
+ __u32 n_slices;
+
+ __u8 data[];
Is a zero size array a GCC extension or something? I somehow seem to
remember someone was complaining about this.
[0] is a GNU C extension
[] is a flexible array in C99
Right.. hm.. I was pretty sure both were not acceptable, but, when I
look into include/uapi I see that there are both actually in at least
some use. So I don't know.. fine I guess, but don't be surprised if
someone complains.
Regards,
Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx