On 7/22/21 8:52 PM, Ben Pfaff wrote:
> 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 <i.maxim...@ovn.org>
> 
> Acked-by: Ben Pfaff <b...@ovn.org>
> 

Applied.  Thanks!

Best regards, Ilya Maximets.
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to