From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) by dpdk.org (Postfix) with ESMTP id 8698AFEB for ; Sat, 27 Oct 2018 00:00:49 +0200 (CEST) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 1F1A021F1B; Fri, 26 Oct 2018 18:00:49 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Fri, 26 Oct 2018 18:00:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monjalon.net; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=mesmtp; bh=jISrNVFimfWfNlfE+aSWglO V08Z5UJZViNrgMRgvcoA=; b=JjbeLiA9sJIMTcSUO8axFT0u8ohbwT9j6KFVNId ZBiGpqNziIK4hVSyUC6ZE69PDZVh8lepiaJOiOiGXq7WB+DZZSYaMpvsiwTtmEn9 sitSpQStD6T+ARgvSm20zt8aINnIQbNMmmvwHdguYQI/gsEVadYLiRKa/OBfqIfz Ip+8= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=jISrNVFimfWfNlfE+ aSWglOV08Z5UJZViNrgMRgvcoA=; b=nm7XuSiMwcM7yLcOkBRVVsAR+wGXFqtad /yZOS8CvJonf76CR84kNEMF+e1ETCYT308alBeK50Ol5UWX0rfgIavclxQuNvmX8 kaX5KtBj17ZzAfZkwRseQdvv1zsO5aSsjZZVwNjLR5YOllRtLMGbxWrPw+sEWuCv eewVH27Jgpe+XMIbm9xzA183q2wWX5VsCC1KXfhDVhogfa25FV9OQoowEdPVtrGu 6HoQAh9JPfm7Yohd9U2p/vIWjfLhPcDki2B14+Ktn5Ul6euvn7OalwT0VtcF4rak mbcU08hCOIAwX2xT0vZ+RmypiEfyJhd+4Ine4hq4uzbPgLU1UBHAw== X-ME-Sender: X-ME-Proxy: Received: from xps.monjalon.net (184.203.134.77.rev.sfr.net [77.134.203.184]) by mail.messagingengine.com (Postfix) with ESMTPA id A5C16E47CB; Fri, 26 Oct 2018 18:00:47 -0400 (EDT) From: Thomas Monjalon To: David Hunt Cc: dev@dpdk.org, liang.j.ma@intel.com, lei.a.yao@intel.com, ferruh.yigit@intel.com Date: Sat, 27 Oct 2018 00:00:45 +0200 Message-Id: <20181026220045.28739-1-thomas@monjalon.net> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH] examples/l3fwd-power: fix build with icc X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Oct 2018 22:00:49 -0000 main.c(376): error #592: variable "lcore_id" is used before its value is set RTE_SET_USED(lcore_id); ^ The variables were voided with RTE_SET_USED without an obvious reason. Removing these voidings should avoid the icc error. Fixes: a137d012 ("examples/l3fwd-power: support traffic pattern aware control") Signed-off-by: Thomas Monjalon --- examples/l3fwd-power/main.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index c07eeff10..0b3f8fe61 100644 --- a/examples/l3fwd-power/main.c +++ b/examples/l3fwd-power/main.c @@ -373,10 +373,6 @@ signal_exit_now(int sigtype) unsigned int portid; int ret; - RTE_SET_USED(lcore_id); - RTE_SET_USED(portid); - RTE_SET_USED(ret); - if (sigtype == SIGINT) { if (empty_poll_on) empty_poll_stop = true; -- 2.19.0