Mesa (master): nv50: Fix unused var warning in release build

Rhys Kidd rhyskidd at kemper.freedesktop.org
Sat Dec 30 04:07:47 UTC 2017


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

Author: Rhys Kidd <rhyskidd at gmail.com>
Date:   Sat Dec  2 12:56:26 2017 -0500

nv50: Fix unused var warning in release build

Reviewed-by: Pierre Moreau <pierre.morrow at free.fr>
Signed-off-by: Rhys Kidd <rhyskidd at gmail.com>

---

 src/gallium/drivers/nouveau/nv50/nv98_video.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/nouveau/nv50/nv98_video.c b/src/gallium/drivers/nouveau/nv50/nv98_video.c
index 92526d9f64..da0267e646 100644
--- a/src/gallium/drivers/nouveau/nv50/nv98_video.c
+++ b/src/gallium/drivers/nouveau/nv50/nv98_video.c
@@ -40,7 +40,8 @@ nv98_decoder_decode_bitstream(struct pipe_video_codec *decoder,
    uint32_t comm_seq = ++dec->fence_seq;
    union pipe_desc desc;
 
-   unsigned vp_caps, is_ref, ret;
+   unsigned vp_caps, is_ref;
+   MAYBE_UNUSED unsigned ret; /* used in debug checks */
    struct nouveau_vp3_video_buffer *refs[16] = {};
 
    desc.base = picture;




More information about the mesa-commit mailing list