From: Zhiyong Yang Date: Thu, 25 Jan 2018 07:03:50 +0000 (+0800) Subject: event/opdl: fix icc build X-Git-Tag: spdx-start~12 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8b35ad02dbf9fee21f40c1031f829554705f69f7;p=dpdk.git event/opdl: fix icc build ICC reports the issue at compile time as follows. error #592: variable "i" is used before its value is set RTE_SET_USED(i); The patch is to fix it. GCC and CLANG has been tested as well. Fixes: d548ef513cd7 ("event/opdl: add unit tests") Signed-off-by: Zhiyong Yang Acked-by: Liang Ma --- diff --git a/drivers/event/opdl/opdl_test.c b/drivers/event/opdl/opdl_test.c index 13d4f6b458..39c6cf8cf6 100644 --- a/drivers/event/opdl/opdl_test.c +++ b/drivers/event/opdl/opdl_test.c @@ -562,7 +562,6 @@ single_link_w_stats(struct test *t) uint32_t deq_pkts; struct rte_mbuf *mbufs[3]; RTE_SET_USED(mbufs); - RTE_SET_USED(i); /* Create instance with 3 ports */ if (init(t, 2, tx_port + 1) < 0 || @@ -702,10 +701,8 @@ single_link(struct test *t) /* const uint8_t w3_port = 3; */ const uint8_t tx_port = 2; int err; - int i; struct rte_mbuf *mbufs[3]; RTE_SET_USED(mbufs); - RTE_SET_USED(i); /* Create instance with 5 ports */ if (init(t, 2, tx_port+1) < 0 ||