Re: [PATCH v2 1/2] configure: Add -Wno-gnu-variable-sized-type-not-at-end

2022-09-09 Thread Cornelia Huck
On Fri, Sep 09 2022, Chenyi Qiang wrote: > In recent linux headers update to v6.0-rc, it switched GNU Maybe "A Linux headers update to v6.0-rc switches some definitions from the GNU..." ? > 'zero-length-array' extension to the C-standard-defined flexible array > member. e.g. > > struct

[PATCH v2 1/2] configure: Add -Wno-gnu-variable-sized-type-not-at-end

2022-09-08 Thread Chenyi Qiang
In recent linux headers update to v6.0-rc, it switched GNU 'zero-length-array' extension to the C-standard-defined flexible array member. e.g. struct kvm_msrs { __u32 nmsrs; /* number of msrs in entries */ __u32 pad; - struct kvm_msr_entry entries[0]; + struct