From: Eric Engestrom Date: Tue, 12 Sep 2017 14:58:28 +0000 (+0100) Subject: glsl: compile unused function out X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2f6ffab1ce740fa39a3472f59ba95d0d50cfd151;p=mesa.git glsl: compile unused function out The function is only called from one place, which is hidden behind the same `#ifdef DEBUG`. Fixes: ca73c3358c91434e68ab "glsl: Mark functions static" Signed-off-by: Eric Engestrom Reviewed-by: Matt Turner --- diff --git a/src/compiler/glsl/ir_validate.cpp b/src/compiler/glsl/ir_validate.cpp index becce771be2..50d611500c5 100644 --- a/src/compiler/glsl/ir_validate.cpp +++ b/src/compiler/glsl/ir_validate.cpp @@ -1043,6 +1043,7 @@ ir_validate::validate_ir(ir_instruction *ir, void *data) _mesa_set_add(ir_set, ir); } +#ifdef DEBUG static void check_node_type(ir_instruction *ir, void *data) { @@ -1056,6 +1057,7 @@ check_node_type(ir_instruction *ir, void *data) if (value != NULL) assert(value->type != glsl_type::error_type); } +#endif void validate_ir_tree(exec_list *instructions)