From: Brian Paul Date: Thu, 1 Mar 2012 03:53:46 +0000 (-0700) Subject: r300g: init chan=0 to silence warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dab5f98404677bbbdbe3d5a82b607bfd4689b48e;p=mesa.git r300g: init chan=0 to silence warning --- diff --git a/src/gallium/drivers/r300/compiler/radeon_optimize.c b/src/gallium/drivers/r300/compiler/radeon_optimize.c index 2d799a6547a..0714d794182 100644 --- a/src/gallium/drivers/r300/compiler/radeon_optimize.c +++ b/src/gallium/drivers/r300/compiler/radeon_optimize.c @@ -700,7 +700,7 @@ static int peephole_mul_omod( struct rc_instruction * inst_mul, struct rc_list * var_list) { - unsigned int chan, swz, i; + unsigned int chan = 0, swz, i; int const_index = -1; int temp_index = -1; float const_value;