From 5c1afd1ce43b8d40a14845b2b026924709956405 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 8 Jul 2020 13:49:31 -0700 Subject: [PATCH] freedreno/ir3: Fix uninit var warning. It's a decent bit of analysis to see that the initialization will always happen, and my compiler isn't doing so in at least one configuration. Part-of: --- src/freedreno/ir3/ir3_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/freedreno/ir3/ir3_shader.c b/src/freedreno/ir3/ir3_shader.c index 9771c66faf6..6ecce8fb290 100644 --- a/src/freedreno/ir3/ir3_shader.c +++ b/src/freedreno/ir3/ir3_shader.c @@ -400,7 +400,7 @@ trim_constlens(unsigned *constlens, cur_total += constlens[i]; } - unsigned max_stage; + unsigned max_stage = 0; unsigned max_const = 0; uint32_t trimmed = 0; -- 2.30.2