i965: Silence gcc warning about uninitialized "inst" in assert() case.
authorEric Anholt <eric@anholt.net>
Fri, 30 Dec 2011 07:48:24 +0000 (23:48 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 2 Jan 2012 18:38:47 +0000 (10:38 -0800)
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index 74e486cc0138051e8dc6f7646d5396d4400dbb6b..52e63f86b54428826a7173583ac46c20b2efbf7c 100644 (file)
@@ -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: