[vlc-devel] [PATCH 6/7] config: use flexible array member instead of a zero length array

Rémi Denis-Courmont remi at remlab.net
Tue May 6 23:24:20 CEST 2014

Le mardi 6 mai 2014, 23:15:52 Felix Abecassis a écrit :
> ISO C was the same as ANSI C for me, OK.
> Could you give me a reference for this?

FWIW, the GCC implies that sizeof() is not portable:

   * Flexible array members have incomplete type, and so the `sizeof'
     operator may not be applied.  As a quirk of the original
     implementation of zero-length arrays, `sizeof' evaluates to zero.

Rémi Denis-Courmont

More information about the vlc-devel mailing list