From: José Fonseca Date: Mon, 30 Aug 2010 12:59:24 +0000 (+0100) Subject: mesa: Return after assertion failure. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4841c0a15adcc722e67d7d246987cd686d3f7a17;p=mesa.git 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 --- 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);