Module: Mesa Branch: master Commit: c82c24b18bb78d500db3c0481e10c58583fd3160 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c82c24b18bb78d500db3c0481e10c58583fd3160
Author: Eric Anholt <[email protected]> Date: Thu Dec 29 23:48:24 2011 -0800 i965: Silence gcc warning about uninitialized "inst" in assert() case. --- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 2 +- 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 74e486c..52e63f8 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: _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
