summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-12-29 23:48:24 -0800
committerEric Anholt <[email protected]>2012-01-02 10:38:47 -0800
commitc82c24b18bb78d500db3c0481e10c58583fd3160 (patch)
treebaf7147adcab6efd5dab2d886f7d325cfd192509
parentbf2c7469fba256e8d5fb3b5c6c130204550ec253 (diff)
i965: Silence gcc warning about uninitialized "inst" in assert() case.
-rw-r--r--src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
index 74e486cc013..52e63f86b54 100644
--- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
@@ -1762,7 +1762,7 @@ vec4_visitor::visit(ir_texture *ir)
/* Should be lowered by do_lower_texture_projection */
assert(!ir->projector);
- vec4_instruction *inst;
+ vec4_instruction *inst = NULL;
switch (ir->op) {
case ir_tex:
case ir_txl: