summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorRhys Kidd <[email protected]>2017-12-02 13:06:45 -0500
committerRhys Kidd <[email protected]>2017-12-29 23:04:42 -0500
commit634ca4c2c3edf7b0a6f32d02e6a4e86316019377 (patch)
tree9259846419a6354368617742223707cf393e7d65 /src/gallium/drivers
parent540d829d383742b9aa0d4394366d09adde31c9b5 (diff)
nvc0: Fix unused var warnings in release build
Reviewed-by: Pierre Moreau <[email protected]> Signed-off-by: Rhys Kidd <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/nouveau/nvc0/nvc0_video.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_video.c b/src/gallium/drivers/nouveau/nvc0/nvc0_video.c
index b5e7bba5f9e..5c1cf899ca5 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_video.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_video.c
@@ -32,7 +32,7 @@ nvc0_decoder_begin_frame(struct pipe_video_codec *decoder,
{
struct nouveau_vp3_decoder *dec = (struct nouveau_vp3_decoder *)decoder;
uint32_t comm_seq = ++dec->fence_seq;
- unsigned ret = 0;
+ MAYBE_UNUSED unsigned ret = 0; /* used in debug checks */
assert(dec);
assert(target);
@@ -53,7 +53,7 @@ nvc0_decoder_decode_bitstream(struct pipe_video_codec *decoder,
{
struct nouveau_vp3_decoder *dec = (struct nouveau_vp3_decoder *)decoder;
uint32_t comm_seq = dec->fence_seq;
- unsigned ret = 0;
+ MAYBE_UNUSED unsigned ret = 0; /* used in debug checks */
assert(decoder);
@@ -72,7 +72,8 @@ nvc0_decoder_end_frame(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;