From: Grazvydas Ignotas Date: Sat, 16 Apr 2016 01:00:13 +0000 (+0300) Subject: spirv: fix warning in release build X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29d2c0e9e6c545e5182c8da83ef4ca4a27d77388;p=mesa.git 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 Reviewed-by: Emil Velikov --- 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;