From: Eric Anholt Date: Fri, 30 Dec 2011 07:48:24 +0000 (-0800) Subject: i965: Silence gcc warning about uninitialized "inst" in assert() case. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c82c24b18bb78d500db3c0481e10c58583fd3160;p=mesa.git i965: Silence gcc warning about uninitialized "inst" in assert() case. --- 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: