From: Eric Anholt Date: Tue, 30 Nov 2010 21:28:47 +0000 (-0800) Subject: glsl: Quiet unreachable no-return-from-function warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d56c97413ee65e40e3544b89ffca450df9ba1c06;p=mesa.git glsl: Quiet unreachable no-return-from-function warning. --- diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 0978100acd9..04b221e9b8d 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -813,6 +813,8 @@ do_comparison(void *mem_ctx, int operation, ir_rvalue *op0, ir_rvalue *op1) */ return new(mem_ctx) ir_constant(true); } + + return NULL; } ir_rvalue *