vl/mpeg12: Silence GCC unused-variable warning.
authorVinson Lee <vlee@freedesktop.org>
Thu, 30 Jul 2015 03:32:41 +0000 (20:32 -0700)
committerVinson Lee <vlee@freedesktop.org>
Tue, 4 Aug 2015 06:09:03 +0000 (23:09 -0700)
vl/vl_mpeg12_bitstream.c: In function 'decode_slice':
vl/vl_mpeg12_bitstream.c:928:19: warning: unused variable 'extra' [-Wunused-variable]
          unsigned extra = vl_vlc_get_uimsbf(&bs->vlc, 1);
                   ^

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c

index 539a9913e02888cc0cb46ce3a08ff5a1b2a2b900..52ce6c416aac39833366718ea759bd8c7136b467 100644 (file)
@@ -929,6 +929,7 @@ decode_slice(struct vl_mpg12_bs *bs, struct pipe_video_buffer *target)
          mb.PMV[1][0][0] = mb.PMV[0][0][0];
          mb.PMV[1][0][1] = mb.PMV[0][0][1];
          assert(extra);
+         (void) extra;
       } else if (mb.macroblock_type & PIPE_MPEG12_MB_TYPE_INTRA ||
                 !(mb.macroblock_type & (PIPE_MPEG12_MB_TYPE_MOTION_FORWARD |
                                         PIPE_MPEG12_MB_TYPE_MOTION_BACKWARD))) {