From 6ab795370619b6a7abbc1d6feb4eb6e6dbf95d3d Mon Sep 17 00:00:00 2001 From: hyperpastel Date: Sun, 20 Apr 2025 16:02:56 +0200 Subject: [PATCH] Patch false maybe-uninitialized warning --- src/compiler/sema_expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/sema_expr.c b/src/compiler/sema_expr.c index b1459230d..caa32e4b7 100644 --- a/src/compiler/sema_expr.c +++ b/src/compiler/sema_expr.c @@ -5136,7 +5136,7 @@ static inline bool sema_expr_analyse_swizzle(SemaContext *context, Expr *expr, E assert(indexed_type); if (is_lvalue) check = CHECK_VALUE; ASSERT_SPAN(expr, len > 0); - int index; + int index = 0; bool is_overlapping = false; for (unsigned i = 0; i < len; i++) {