On 28 Feb 2022, at 2:56, 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 'ofputil_decode_packet_in_private':
> lib/ofp-packet.c:886:27: warning: 'value' may be used
> uninitialized [-Wmaybe-uninitialized]
>
> Modifying callers of ofpprop_parse_* functions to always check
> the return value before using the value from these functions.
>
> Signed-off-by: Mike Pattrick <[email protected]>
Changes look good to me.
Acked-by: Eelco Chaudron <[email protected]>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev