summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ir_validate.cpp
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2017-09-18 16:35:28 +0100
committerEric Engestrom <[email protected]>2017-09-19 09:46:08 +0100
commitfc7345415faaa2291a3a0710c60c76cc67fd188c (patch)
tree2375466b3cadb4ca1067d48500c4293803c587cf /src/compiler/glsl/ir_validate.cpp
parent3752ad28f23fc8136f75104b6ac4572341a05467 (diff)
glsl: replace conditional compilation with MAYBE_UNUSED
Suggested-by: Nicolai Hähnle <[email protected]> Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir_validate.cpp')
-rw-r--r--src/compiler/glsl/ir_validate.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compiler/glsl/ir_validate.cpp b/src/compiler/glsl/ir_validate.cpp
index 50d611500c5..e368224a9ba 100644
--- a/src/compiler/glsl/ir_validate.cpp
+++ b/src/compiler/glsl/ir_validate.cpp
@@ -36,6 +36,7 @@
#include "ir.h"
#include "ir_hierarchical_visitor.h"
#include "util/hash_table.h"
+#include "util/macros.h"
#include "util/set.h"
#include "compiler/glsl_types.h"
@@ -1043,8 +1044,7 @@ ir_validate::validate_ir(ir_instruction *ir, void *data)
_mesa_set_add(ir_set, ir);
}
-#ifdef DEBUG
-static void
+MAYBE_UNUSED static void
check_node_type(ir_instruction *ir, void *data)
{
(void) data;
@@ -1057,7 +1057,6 @@ 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)