From 4e623726114922da0a5f788d4bc70e7962a6176d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alejandro=20Pi=C3=B1eiro?= Date: Fri, 27 Nov 2020 13:14:47 +0100 Subject: [PATCH] v3dv/pipeline: avoid unused warning on release build Reviewed-by: Iago Toral Quiroga Part-of: --- src/broadcom/vulkan/v3dv_pipeline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/broadcom/vulkan/v3dv_pipeline.c b/src/broadcom/vulkan/v3dv_pipeline.c index c982a540713..20507e4c219 100644 --- a/src/broadcom/vulkan/v3dv_pipeline.c +++ b/src/broadcom/vulkan/v3dv_pipeline.c @@ -1717,7 +1717,7 @@ pipeline_lower_nir(struct v3dv_pipeline *pipeline, * We add two of those, one for the case we need a 16bit return_size, and * another for the case we need a 32bit return size. */ - unsigned index = + UNUSED unsigned index = descriptor_map_add(&pipeline->sampler_map, -1, -1, -1, 0, 16); assert(index == V3DV_NO_SAMPLER_16BIT_IDX); -- 2.34.1