Re: [PATCH v2] examples: compilation fix for GCC-12

2022-10-06 Thread Thomas Monjalon
02/09/2022 09:43, Amit Prakash Shukla: > GCC-12 warns when a pointer of type union points to an array of same > defined size, as union internally gets paded with pad bytes. > > ../examples/common/neon/port_group.h:42:21: error: array subscript > 'union [0]' is partly outside array bounds of

Re: [PATCH v2] examples: compilation fix for GCC-12

2022-10-06 Thread Thomas Monjalon
06/10/2022 08:31, Amit Prakash Shukla: > checkpatch complains about coding style error. It looks like a false positive > ? Yes we can ignore this checkpatch warning.

RE: [PATCH v2] examples: compilation fix for GCC-12

2022-10-05 Thread Amit Prakash Shukla
ukkaran ; > sta...@dpdk.org; Akhil Goyal ; > step...@networkplumber.org; Amit Prakash Shukla > > Subject: [PATCH v2] examples: compilation fix for GCC-12 > > GCC-12 warns when a pointer of type union points to an array of same > defined size, as union internally gets paded with pad

[PATCH v2] examples: compilation fix for GCC-12

2022-09-02 Thread Amit Prakash Shukla
GCC-12 warns when a pointer of type union points to an array of same defined size, as union internally gets paded with pad bytes. ../examples/common/neon/port_group.h:42:21: error: array subscript 'union [0]' is partly outside array bounds of 'uint16_t[5]' {aka 'short unsigned int[