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
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.
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
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[
4 matches
Mail list logo