Skip to contentSkip to conversation

examples/l3fwd-power: fix build with icc

PATCH In review Thomas Monjalon 2 participants 3 messages Oct 26, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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")
---
 examples/l3fwd-power/main.c | 4 ----
 1 file changed, 4 deletions(-)
examples/l3fwd-power/main.c +0 -4
index c07eeff10..0b3f8fe61 100644
@@ -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;
Signature · 1 line
2.19.0
Tested-by on v1 1/1
#1 lore raw
Quoted 10 lines · Thomas Monjalon

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")
author Applied
#2 lore raw

27/10/2018 00:13, Ferruh Yigit:

Quoted 5 lines · Thomas Monjalon
Quoted 4 lines

main.c(376): error #592: variable "lcore_id" is used before its value is set

        RTE_SET_USED(lcore_id);
        ^
Quoted 8 lines
Quoted 6 lines

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")

Applied