Mesa (master): v3dv/pipeline: avoid unused warning on release build

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Nov 27 21:07:34 UTC 2020


Module: Mesa
Branch: master
Commit: 4e623726114922da0a5f788d4bc70e7962a6176d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4e623726114922da0a5f788d4bc70e7962a6176d

Author: Alejandro Piñeiro <apinheiro at igalia.com>
Date:   Fri Nov 27 13:14:47 2020 +0100

v3dv/pipeline: avoid unused warning on release build

Reviewed-by: Iago Toral Quiroga <itoral at igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7812>

---

 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);



More information about the mesa-commit mailing list