[Mesa-dev] [PATCH] spirv: Silence unused variable warnings in release mode
Jordan Justen
jordan.l.justen at intel.com
Tue Mar 7 21:44:19 UTC 2017
Reviewed-by: Jordan Justen <jordan.l.justen at intel.com>
On 2017-03-07 12:55:01, Jason Ekstrand wrote:
> ---
> src/compiler/spirv/spirv_to_nir.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c
> index 1dd6651..8a02904 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];
> --
> 2.5.0.400.gff86faf
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list