glsl: silence uninitialized var warning on MinGW
authorBrian Paul <brianp@vmware.com>
Fri, 27 Feb 2015 20:06:06 +0000 (13:06 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 27 Feb 2015 22:22:25 +0000 (15:22 -0700)
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
src/glsl/opt_algebraic.cpp

index c3f3842bab37b0b13f91d38e0b4e34703e01323f..c6040bff825474185eb4fe5fa8efb056cedbc634 100644 (file)
@@ -866,6 +866,7 @@ ir_algebraic_visitor::handle_expression(ir_expression *ir)
             one = new(mem_ctx) ir_constant(1.0, op2_components);
             break;
          default:
+            one = NULL;
             unreachable("unexpected type");
          }