diff options
author | Petri Savolainen <petri.savolainen@nokia.com> | 2024-02-01 17:10:10 +0200 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2024-02-06 14:46:29 +0200 |
commit | f76c31f6f75bc6b55d44e225c05c8bfeab9fe7bf (patch) | |
tree | f28b8fb5889fd3f2d62aa50e581c99c5a5f9dc2a | |
parent | 913bdb73cf38a9c954b61335d56b57b1a12b09fa (diff) |
validation: scheduler: avoid variable name shadowing
Fixes -Wshadow compiler warnings.
Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com>
Reviewed-by: Matias Elo <matias.elo@nokia.com>
-rw-r--r-- | test/validation/api/scheduler/scheduler.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/validation/api/scheduler/scheduler.c b/test/validation/api/scheduler/scheduler.c index 87069f7fe..8dddd8d8f 100644 --- a/test/validation/api/scheduler/scheduler.c +++ b/test/validation/api/scheduler/scheduler.c @@ -1469,8 +1469,7 @@ static int schedule_common_(void *arg) odp_pool_t pool; int locked; int num; - odp_event_t ev; - odp_buffer_t buf, buf_cpy; + odp_buffer_t buf; odp_queue_t from; globals = args->globals; @@ -1553,7 +1552,8 @@ static int schedule_common_(void *arg) odp_event_free(events[j]); } } else { - ev = odp_schedule(&from, ODP_SCHED_NO_WAIT); + odp_event_t ev = odp_schedule(&from, ODP_SCHED_NO_WAIT); + if (ev == ODP_EVENT_INVALID) continue; @@ -1564,6 +1564,7 @@ static int schedule_common_(void *arg) uint32_t ndx; uint32_t ndx_max; int rc; + odp_buffer_t buf_cpy; ndx_max = odp_queue_lock_count(from); CU_ASSERT_FATAL(ndx_max > 0); |