mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-30 18:40:13 +01:00
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>
This commit is contained in:
parent
cbb0d4ad75
commit
29d2c0e9e6
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue