[11/11] test/event: fix build with clang 15
Checks
Commit Message
This variable is not used.
Fixes: d1f3385d0076 ("test: add event timer adapter auto-test")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
---
app/test/test_event_timer_adapter.c | 2 --
1 file changed, 2 deletions(-)
Comments
> -----Original Message-----
> From: David Marchand <david.marchand@redhat.com>
> Sent: 2022年11月18日 16:53
> To: dev@dpdk.org
> Cc: stable@dpdk.org; Carrillo, Erik G <erik.g.carrillo@intel.com>; Pavan
> Nikhilesh <pbhagavatula@caviumnetworks.com>
> Subject: [PATCH 11/11] test/event: fix build with clang 15
>
> This variable is not used.
>
> Fixes: d1f3385d0076 ("test: add event timer adapter auto-test")
> Cc: stable@dpdk.org
>
> Signed-off-by: David Marchand <david.marchand@redhat.com>
Tested-by: Daxue Gao <daxuex.gao@intel.com>
@@ -911,7 +911,6 @@ _cancel_thread(void *args)
{
RTE_SET_USED(args);
struct rte_event_timer *ev_tim = NULL;
- uint64_t cancel_count = 0;
uint16_t ret;
while (!arm_done || rte_ring_count(timer_producer_ring) > 0) {
@@ -921,7 +920,6 @@ _cancel_thread(void *args)
ret = rte_event_timer_cancel_burst(timdev, &ev_tim, 1);
TEST_ASSERT_EQUAL(ret, 1, "Failed to cancel timer");
rte_mempool_put(eventdev_test_mempool, (void *)ev_tim);
- cancel_count++;
}
return TEST_SUCCESS;