From ab8581d398f4383129d0170d539c6311a06e2a8c Mon Sep 17 00:00:00 2001 From: Matias Elo Date: Fri, 20 Dec 2024 14:36:05 +0200 Subject: [PATCH] test: timer_accuracy: fix bogus 'maybe-uninitialized' warning Initialize variable to avoid false positive maybe-uninitialized warning from GCC 14. Signed-off-by: Matias Elo Reviewed-by: Carl Wallen Reviewed-by: Tuomas Taipale --- test/performance/odp_timer_accuracy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/performance/odp_timer_accuracy.c b/test/performance/odp_timer_accuracy.c index 8e96a0ff76..557b072b86 100644 --- a/test/performance/odp_timer_accuracy.c +++ b/test/performance/odp_timer_accuracy.c @@ -1222,7 +1222,7 @@ static int run_test(void *arg) /* Reset timer for next period */ odp_timer_t tim; uint64_t nsec, tick; - odp_timer_retval_t ret; + odp_timer_retval_t ret = ODP_TIMER_FAIL; unsigned int j; unsigned int retries = test_global->opt.early_retry; uint64_t start_ns = test_global->start_ns;