From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH] examples/l3fwd-power: fix build with icc Date: Sat, 27 Oct 2018 00:00:45 +0200 Message-ID: <20181026220045.28739-1-thomas@monjalon.net> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: dev@dpdk.org, liang.j.ma@intel.com, lei.a.yao@intel.com, ferruh.yigit@intel.com To: David Hunt 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) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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