From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 6709D1518 for ; Fri, 28 Nov 2014 16:10:30 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 28 Nov 2014 07:10:29 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,477,1413270000"; d="scan'208";a="639596768" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga002.fm.intel.com with ESMTP; 28 Nov 2014 07:10:17 -0800 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id sASFAGTE021099 for ; Fri, 28 Nov 2014 15:10:17 GMT Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id sASFAGqN016669 for ; Fri, 28 Nov 2014 15:10:16 GMT Received: (from pdelarax@localhost) by sivswdev02.ir.intel.com with id sASFAGjZ016665 for dev@dpdk.org; Fri, 28 Nov 2014 15:10:16 GMT From: Pablo de Lara To: dev@dpdk.org Date: Fri, 28 Nov 2014 15:10:16 +0000 Message-Id: <1417187416-16630-1-git-send-email-pablo.de.lara.guarch@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] bond: Fixed compilation issue on gcc 4.3, due to uninitialized array X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Nov 2014 15:10:31 -0000 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 --- lib/librte_pmd_bond/rte_eth_bond_pmd.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/librte_pmd_bond/rte_eth_bond_pmd.c b/lib/librte_pmd_bond/rte_eth_bond_pmd.c index bb2b909..539baa4 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 }; -- 1.7.4.1