Re: [ovs-dev] [PATCH v1] ofp-packet: Silence the 'may be uninitialized' warning.

2022-02-25 Thread Mike Pattrick
On Fri, Feb 25, 2022 at 4:43 PM Gregory Rose wrote: > > > > On 2/25/2022 12:02 PM, Mike Pattrick wrote: > > GCC 11.2.1-2.2 emits a false-positive warnings like: > > > > lib/ofp-packet.c: In function 'ofputil_decode_packet_in': > > lib/ofp-packet.c:155:25: warning: 'reason' may be used > >

Re: [ovs-dev] [PATCH v1] ofp-packet: Silence the 'may be uninitialized' warning.

2022-02-25 Thread Gregory Rose
On 2/25/2022 12:02 PM, Mike Pattrick wrote: GCC 11.2.1-2.2 emits a false-positive warnings like: lib/ofp-packet.c: In function 'ofputil_decode_packet_in': lib/ofp-packet.c:155:25: warning: 'reason' may be used uninitialized [-Wmaybe-uninitialized] lib/ofp-packet.c: In function

[ovs-dev] [PATCH v1] ofp-packet: Silence the 'may be uninitialized' warning.

2022-02-25 Thread Mike Pattrick
GCC 11.2.1-2.2 emits a false-positive warnings like: lib/ofp-packet.c: In function 'ofputil_decode_packet_in': lib/ofp-packet.c:155:25: warning: 'reason' may be used uninitialized [-Wmaybe-uninitialized] lib/ofp-packet.c: In function 'ofputil_decode_packet_in_private':