aboutsummaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2015-02-27 13:06:06 -0700
committerBrian Paul <[email protected]>2015-02-27 15:22:25 -0700
commit667dac9d40760822e0e4be750c3a18fe56ec4b40 (patch)
treebf7796482c1facbd2bb05d6f9c91cd288a535598 /src/glsl
parentbf8d049488eb0a693712281f0ff5adb3d56d2340 (diff)
glsl: silence uninitialized var warning on MinGW
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/opt_algebraic.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/opt_algebraic.cpp b/src/glsl/opt_algebraic.cpp
index c3f3842bab3..c6040bff825 100644
--- a/src/glsl/opt_algebraic.cpp
+++ b/src/glsl/opt_algebraic.cpp
@@ -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");
}