From: Eric Anholt Date: Wed, 8 Jul 2020 20:49:31 +0000 (-0700) Subject: freedreno/ir3: Fix uninit var warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c1afd1ce43b8d40a14845b2b026924709956405;p=mesa.git 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: --- 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;