From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 1834B6829 for ; Tue, 8 Jul 2014 01:37:20 +0200 (CEST) Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 07 Jul 2014 16:37:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.01,621,1400050800"; d="scan'208";a="569652681" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by orsmga002.jf.intel.com with ESMTP; 07 Jul 2014 16:37:01 -0700 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 s67Nb0NR029604; Tue, 8 Jul 2014 00:37:00 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id s67Nb0jB006460; Tue, 8 Jul 2014 00:37:00 +0100 Received: (from bricha3@localhost) by sivswdev02.ir.intel.com with id s67Nb0jE006456; Tue, 8 Jul 2014 00:37:00 +0100 From: Bruce Richardson To: dev@dpdk.org Date: Tue, 8 Jul 2014 00:36:54 +0100 Message-Id: <1404776219-6130-2-git-send-email-bruce.richardson@intel.com> X-Mailer: git-send-email 1.7.0.7 In-Reply-To: <1404776219-6130-1-git-send-email-bruce.richardson@intel.com> References: <1404776219-6130-1-git-send-email-bruce.richardson@intel.com> Subject: [dpdk-dev] [PATCH 1/6] pmd_bond: add missing variable initialization 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: Mon, 07 Jul 2014 23:37:21 -0000 Variable "valid_slave" wasn't getting properly zero-initialized. This error is flagged by clang on compile. Signed-off-by: Bruce Richardson --- lib/librte_pmd_bond/rte_eth_bond_pmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_pmd_bond/rte_eth_bond_pmd.c b/lib/librte_pmd_bond/rte_eth_bond_pmd.c index 048de7f..6ce4e57 100644 --- a/lib/librte_pmd_bond/rte_eth_bond_pmd.c +++ b/lib/librte_pmd_bond/rte_eth_bond_pmd.c @@ -920,7 +920,7 @@ bond_ethdev_lsc_event_callback(uint8_t port_id, enum rte_eth_event_type type, struct bond_dev_private *internals; struct rte_eth_link link; - int i, bonded_port_id, valid_slave, active_pos = -1; + int i, bonded_port_id, valid_slave = 0, active_pos = -1; if (type != RTE_ETH_EVENT_INTR_LSC) return; -- 1.9.3