From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 22F2B47D1 for ; Fri, 22 Jul 2016 16:13:40 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 22 Jul 2016 07:13:40 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,405,1464678000"; d="scan'208";a="738279016" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by FMSMGA003.fm.intel.com with ESMTP; 22 Jul 2016 07:13:39 -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 u6MEDcn8013758; Fri, 22 Jul 2016 15:13:38 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id u6MEDcPw029430; Fri, 22 Jul 2016 15:13:38 +0100 Received: (from fyigit@localhost) by sivswdev02.ir.intel.com with id u6MEDcFu029426; Fri, 22 Jul 2016 15:13:38 +0100 X-Authentication-Warning: sivswdev02.ir.intel.com: fyigit set sender to ferruh.yigit@intel.com using -f From: Ferruh Yigit To: dev@dpdk.org Cc: Anatoly Burakov Date: Fri, 22 Jul 2016 15:13:36 +0100 Message-Id: <1469196816-29395-1-git-send-email-ferruh.yigit@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] examples/l2fwd-ivshmem: fix icc compile error 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, 22 Jul 2016 14:13:41 -0000 icc version 16.0.2, compile error: == host CC host.o /root/development/dpdk/examples/l2fwd-ivshmem/host/host.c(157): error #3656: variable "total_vm_packets_dropped" may be used before its value is set total_vm_packets_dropped += ctrl->vm_ports[portid].stats.dropped; ^ Fixes: 6aa497249172 ("examples/l2fwd-ivshmem: import sample application") Signed-off-by: Ferruh Yigit --- examples/l2fwd-ivshmem/host/host.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/l2fwd-ivshmem/host/host.c b/examples/l2fwd-ivshmem/host/host.c index cd284b7..da7b00d 100644 --- a/examples/l2fwd-ivshmem/host/host.c +++ b/examples/l2fwd-ivshmem/host/host.c @@ -110,7 +110,8 @@ static void print_stats(void) { uint64_t total_packets_dropped, total_packets_tx, total_packets_rx; - uint64_t total_vm_packets_dropped, total_vm_packets_tx, total_vm_packets_rx; + uint64_t total_vm_packets_dropped = 0; + uint64_t total_vm_packets_tx, total_vm_packets_rx; unsigned portid; total_packets_dropped = 0; -- 2.7.4