diff options
author | Janne Peltonen <janne.peltonen@nokia.com> | 2023-05-25 14:05:58 +0300 |
---|---|---|
committer | Matias Elo <matias.elo@nokia.com> | 2023-05-26 10:38:23 +0300 |
commit | 140af0b0def5e9668f7c28e10f4a625db568797b (patch) | |
tree | 01ae5ad018f441ad063b03c9493f501130d628f4 /platform | |
parent | f1b6c6d6878608da82659d496e4d78b5cd275b1a (diff) |
linux-gen: queue_lf: fix bogus 'maybe-uninitialized' warning
GCC-13 warns that a variable may be used uninitialized. The warning is
a false positive. Get rid of it by initializing the variable.
Signed-off-by: Janne Peltonen <janne.peltonen@nokia.com>
Reviewed-by: Jere Leppänen <jere.leppanen@nokia.com>
Diffstat (limited to 'platform')
-rw-r--r-- | platform/linux-generic/odp_queue_lf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/linux-generic/odp_queue_lf.c b/platform/linux-generic/odp_queue_lf.c index 9004402b8..7c9ba4013 100644 --- a/platform/linux-generic/odp_queue_lf.c +++ b/platform/linux-generic/odp_queue_lf.c @@ -176,7 +176,7 @@ static _odp_event_hdr_t *queue_lf_deq(odp_queue_t handle) { queue_entry_t *queue; queue_lf_t *queue_lf; - int i, j, i_lowest; + int i, j, i_lowest = 0; int found; ring_lf_node_t node_val, old_val, new_val; ring_lf_node_t *node, *old; |