nv50: Fix unused var warning in release build
authorRhys Kidd <rhyskidd@gmail.com>
Sat, 2 Dec 2017 17:56:26 +0000 (12:56 -0500)
committerRhys Kidd <rhyskidd@gmail.com>
Sat, 30 Dec 2017 04:04:42 +0000 (23:04 -0500)
Reviewed-by: Pierre Moreau <pierre.morrow@free.fr>
Signed-off-by: Rhys Kidd <rhyskidd@gmail.com>
src/gallium/drivers/nouveau/nv50/nv98_video.c

index 92526d9f64392c7430e6115afc7e61bb19e25e32..da0267e646aa41947c125dc7de2e7f452a8a7a33 100644 (file)
@@ -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;