From: Thomas Monjalon Date: Fri, 26 Oct 2018 21:45:49 +0000 (+0200) Subject: examples/l3fwd-power: fix build with icc X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6e5765deb72b765a79b6560f644d0c6ed004a0dc;p=dpdk.git examples/l3fwd-power: fix build with icc 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 Tested-by: Ferruh Yigit --- diff --git a/examples/l3fwd-power/main.c b/examples/l3fwd-power/main.c index c07eeff10f..0b3f8fe61c 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;