numam-dpdk/drivers/net/avp
Kevin Traynor ec87d3b2c2 net/avp: fix gcc 10 maybe-uninitialized warning
gcc 10.0.1 reports:

../drivers/net/avp/avp_ethdev.c: In function ‘avp_xmit_scattered_pkts’:
../drivers/net/avp/avp_ethdev.c:1791:24:
warning: ‘avp_bufs[count]’ may be used uninitialized in this function
 [-Wmaybe-uninitialized]
 1791 |   tx_bufs[i] = avp_bufs[count];
      |                ~~~~~~~~^~~~~~~
../drivers/net/avp/avp_ethdev.c:1791:24:
warning: ‘avp_bufs[count]’ may be used uninitialized in this function
 [-Wmaybe-uninitialized]

Fix by initializing the array.

Fixes: 295abce2d2 ("net/avp: add packet transmit functions")
Cc: stable@dpdk.org

Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Acked-by: Steven Webster <steven.webster@windriver.com>
2020-05-06 11:18:36 +02:00
..
avp_ethdev.c net/avp: fix gcc 10 maybe-uninitialized warning 2020-05-06 11:18:36 +02:00
avp_logs.h net/avp: convert to SPDX license tags 2018-03-30 14:08:44 +02:00
Makefile build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
meson.build build: disable experimental API check internally 2020-04-14 16:22:34 +02:00
rte_avp_common.h replace packed attributes 2020-04-16 18:16:46 +02:00
rte_avp_fifo.h net/avp: convert to SPDX license tags 2018-03-30 14:08:44 +02:00
rte_pmd_avp_version.map build: align symbols with global ABI version 2019-11-20 23:05:39 +01:00