r300g: init chan=0 to silence warning
authorBrian Paul <brianp@vmware.com>
Thu, 1 Mar 2012 03:53:46 +0000 (20:53 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 1 Mar 2012 03:53:46 +0000 (20:53 -0700)
src/gallium/drivers/r300/compiler/radeon_optimize.c

index 2d799a6547a564be2125d24655417d9339842cd8..0714d794182bb4da8a6b575478a506989ce3f4f2 100644 (file)
@@ -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;