aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-08-30 13:59:24 +0100
committerJosé Fonseca <[email protected]>2010-08-30 13:59:24 +0100
commit4841c0a15adcc722e67d7d246987cd686d3f7a17 (patch)
treeeac3a492eb28c14ec06db6d10fe3bd157c772de8 /src
parent0a6c908e0d2d1721421f7b26d73975f4f61e24a2 (diff)
mesa: Return after assertion failure.
Addresses the warnings: warning: ‘target’ may be used uninitialized in this function warning: ‘target_string’ may be used uninitialized in this function
Diffstat (limited to 'src')
-rw-r--r--src/mesa/program/ir_to_mesa.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index 19f3847ab5b..af6d7345a54 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -2456,7 +2456,7 @@ get_mesa_program(GLcontext *ctx, struct gl_shader_program *shader_program,
break;
default:
assert(!"should not be reached");
- break;
+ return NULL;
}
validate_ir_tree(shader->ir);