Skip to content

Commit

Permalink
linux-gen: dma: 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: Tuomas Taipale <[email protected]>
Reviewed-by: Carl Wallen <[email protected]>
  • Loading branch information
MatiasElo committed Dec 20, 2024
1 parent 7d6a4d4 commit 44e3324
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/linux-generic/odp_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static odp_stash_t create_stash(void)
odp_stash_param_t stash_param;
odp_stash_t stash;
uint32_t id, tmp, i;
int32_t ret;
int32_t ret = 0;

odp_stash_param_init(&stash_param);
stash_param.num_obj = MAX_TRANSFERS;
Expand Down

0 comments on commit 44e3324

Please sign in to comment.