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

2022-09-02 Thread Amit Prakash Shukla
Goyal > > Subject: [EXT] Re: [PATCH] examples: compilation fix for GCC-12 > > External Email > > -- > On Thu, 1 Sep 2022 13:53:43 +0530 > Amit Prakash Shukla wrote: > > > diff --git a/example

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

2022-09-01 Thread Stephen Hemminger
On Thu, 1 Sep 2022 13:53:43 +0530 Amit Prakash Shukla wrote: > diff --git a/examples/common/neon/port_group.h > b/examples/common/neon/port_group.h > index 82c6ed6d73..97da604583 100644 > --- a/examples/common/neon/port_group.h > +++ b/examples/common/neon/port_group.h > @@ -24,7 +24,7 @@ port_g

[PATCH] examples: compilation fix for GCC-12

2022-09-01 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[