[oe] [meta-networking][PATCH 2/2] libnetfilter: Avoid using VLAs

Phil Blundell philb at gnu.org
Sat Oct 3 22:34:35 UTC 2015


On Sat, 2015-10-03 at 12:55 -0700, Khem Raj wrote:
> VLAs in non POD data types like structures and unions
> are not a standard feature of C language and gcc has specific
> implementation which other compilers dont have specifically clang, and
> they refuse to implement it since its non standard.

The reference to "POD" here is a bit confusing.  By the generally
accepted meaning of the term, structs and unions would in fact be POD
just like any other C type.  But you seem to be using the term here to
mean something along the lines of "non-aggregate type", which isn't a
usage I've previously encountered.

This is particularly confusing in this context because there is a
different clang limitation which applies to VLAs where the
variable-length element is not POD, irrespective of whether it is inside
an aggregate or not, and someone reading your comment might be misled
into thinking that this was the issue here.

p.






More information about the Openembedded-devel mailing list