summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-02-11 14:54:33 -0800
committerEric Anholt <[email protected]>2015-02-12 16:33:16 -0800
commit55de910f909ac668ec7ea8fd94ec4f235b0d0335 (patch)
treef03c8580c7e23f4d011a8b9a81857fb9a050d775 /src/mesa/drivers
parentf65e26478ba5e20c9cf4ee5d0fcf879ccb4e3c0d (diff)
i965: Quiet another compiler warning about uninitialized values.
The compiler can't tell that we're always going to hit the first if block on the first time through the loop. Reviewed-by: Matt Turner <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/drivers/dri/i965/brw_vec4.cpp
index ee740520e2b..fda8552d841 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4.cpp
@@ -378,9 +378,9 @@ vec4_visitor::opt_vector_float()
int last_reg = -1, last_reg_offset = -1;
enum register_file last_reg_file = BAD_FILE;
- int remaining_channels;
+ int remaining_channels = 0;
uint8_t imm[4];
- int inst_count;
+ int inst_count = 0;
vec4_instruction *imm_inst[4];
foreach_block_and_inst_safe(block, vec4_instruction, inst, cfg) {