aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/spirv
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-03-07 12:54:33 -0800
committerJason Ekstrand <[email protected]>2017-03-07 15:22:16 -0800
commit4483c5d57c3a4664d27e59478b9c67b529d50630 (patch)
treefe0c9dcc03b8b1f75831db75d24279d1746a1a3a /src/compiler/spirv
parent0421813588c8f28581a83b2a004b8801a53d4281 (diff)
spirv: Silence unused variable warnings in release mode
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/compiler/spirv')
-rw-r--r--src/compiler/spirv/spirv_to_nir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
index 1dd6651191a..8a02904e179 100644
--- a/src/compiler/spirv/spirv_to_nir.c
+++ b/src/compiler/spirv/spirv_to_nir.c
@@ -1149,6 +1149,7 @@ vtn_handle_constant(struct vtn_builder *b, SpvOp opcode,
glsl_get_bit_size(v1->type->type);
assert(bit_size == bit_size0 && bit_size == bit_size1);
+ (void)bit_size0; (void)bit_size1;
if (bit_size == 64) {
uint64_t u64[8];