From d56c97413ee65e40e3544b89ffca450df9ba1c06 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 30 Nov 2010 13:28:47 -0800 Subject: [PATCH] glsl: Quiet unreachable no-return-from-function warning. --- src/glsl/ast_to_hir.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 * -- 2.30.2