From: Pablo de Lara Date: Fri, 28 Nov 2014 15:10:16 +0000 (+0000) Subject: bond: fix build with gcc 4.3 X-Git-Tag: spdx-start~10011 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d68ca91ed85ebb3847358f85cccea7906587549c;p=dpdk.git bond: fix build with gcc 4.3 GCC 4.3 complains that slow_pkts array in bond_ethdev_tx_burst_8023ad may be used uninitialized, so it has been initialized to NULL. Signed-off-by: Pablo de Lara Acked-by: Thomas Monjalon --- diff --git a/lib/librte_pmd_bond/rte_eth_bond_pmd.c b/lib/librte_pmd_bond/rte_eth_bond_pmd.c index bb2b90989f..539baa427c 100644 --- a/lib/librte_pmd_bond/rte_eth_bond_pmd.c +++ b/lib/librte_pmd_bond/rte_eth_bond_pmd.c @@ -585,7 +585,7 @@ bond_ethdev_tx_burst_8023ad(void *queue, struct rte_mbuf **bufs, /* Allocate additional packets in case 8023AD mode. */ struct rte_mbuf *slave_bufs[RTE_MAX_ETHPORTS][buffs_size]; - void *slow_pkts[BOND_MODE_8023AX_SLAVE_TX_PKTS]; + void *slow_pkts[BOND_MODE_8023AX_SLAVE_TX_PKTS] = { NULL }; /* Total amount of packets in slave_bufs */ uint16_t slave_nb_pkts[RTE_MAX_ETHPORTS] = { 0 };