Skip to content

Commit

Permalink
test: timer_accuracy: fix bogus 'maybe-uninitialized' warning
Browse files Browse the repository at this point in the history
Initialize variable to avoid false positive maybe-uninitialized warning
from GCC 14.

Signed-off-by: Matias Elo <[email protected]>
Reviewed-by: Carl Wallen <[email protected]>
Reviewed-by: Tuomas Taipale <[email protected]>
  • Loading branch information
MatiasElo committed Dec 20, 2024
1 parent 381f977 commit ab8581d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/performance/odp_timer_accuracy.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ab8581d

Please sign in to comment.