[Mesa-dev] [PATCH] vl/mpeg12: Silence GCC unused-variable warning.

Christian König deathsimple at vodafone.de
Mon Aug 3 00:42:55 PDT 2015


On 01.08.2015 20:45, Vinson Lee wrote:
> 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 at freedesktop.org>

Reviewed-by: Christian König <christian.koenig at amd.com>

> ---
>   src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c b/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c
> index 539a991..52ce6c4 100644
> --- a/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c
> +++ b/src/gallium/auxiliary/vl/vl_mpeg12_bitstream.c
> @@ -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))) {



More information about the mesa-dev mailing list