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

Khem Raj raj.khem at gmail.com
Sat Oct 3 22:55:20 UTC 2015


On Sat, Oct 3, 2015 at 3:34 PM, Phil Blundell <philb at gnu.org> wrote:
> 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.

Yes, infact I should have said composite data types instead of non-POD
data types. I will send a v2 which should
clear this confusion.

> p.
>
>
>
> --
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-devel



More information about the Openembedded-devel mailing list