On Thu, Jul 22, 2021 at 01:33:37PM +0200, Ilya Maximets wrote:
> GCC 11 on Feodra 34 emits a false-positive warning like this:
>
> lib/netdev-dummy.c: In function ‘dummy_packet_stream_run’:
> lib/netdev-dummy.c:284:16: error: ‘n’ may be used uninitialized in this
> function [-Werror=maybe-uninitialized]
> 284 | if (retval == n && dp_packet_size(&s->rxbuf) > 2) {
> | ^
>
> This breaks the build with --enable-Werror. Initializing 'n' to
> avoid the warning.
>
> Signed-off-by: Ilya Maximets <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev