summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGrazvydas Ignotas <notasas@gmail.com>2016-04-16 04:00:13 +0300
committerIan Romanick <ian.d.romanick@intel.com>2016-04-25 12:23:25 +0200
commit29d2c0e9e6c545e5182c8da83ef4ca4a27d77388 (patch)
treef6ce283f7296ca2b2e4b490e62115c8e67bab367 /src
parentcbb0d4ad75e6309932af7995ca80fa5ff5db7c70 (diff)
spirv: fix warning in release build
Mark variable MAYBE_UNUSED to avoid unused-but-set-variable warning in release build. Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'src')
-rw-r--r--src/compiler/spirv/vtn_cfg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/spirv/vtn_cfg.c b/src/compiler/spirv/vtn_cfg.c
index 6a43ef8b2dd..d9096f43ef6 100644
--- a/src/compiler/spirv/vtn_cfg.c
+++ b/src/compiler/spirv/vtn_cfg.c
@@ -36,7 +36,7 @@ vtn_cfg_handle_prepass_instruction(struct vtn_builder *b, SpvOp opcode,
list_inithead(&b->func->body);
b->func->control = w[3];
- const struct glsl_type *result_type =
+ MAYBE_UNUSED const struct glsl_type *result_type =
vtn_value(b, w[1], vtn_value_type_type)->type->type;
struct vtn_value *val = vtn_push_value(b, w[2], vtn_value_type_function);
val->func = b->func;