Patch false maybe-uninitialized warning

This commit is contained in:
hyperpastel
2025-04-20 16:02:56 +02:00
committed by Christoffer Lerno
parent 42e4370994
commit 6ab7953706

View File

@@ -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++)
{