[VDPAU] [PATCH 1/4] vdpau_wrapper: remove unused parameter warnings

Aaron Plattner aplattner at nvidia.com
Tue Oct 28 09:26:10 PDT 2014


On 10/28/2014 08:20 AM, Rémi Denis-Courmont wrote:
> From: Rémi Denis-Courmont <remid at nvidia.com>
>
> Signed-off-by: Rémi Denis-Courmont <remid at nvidia.com>
> ---
>   src/vdpau_wrapper.c | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/src/vdpau_wrapper.c b/src/vdpau_wrapper.c
> index 77dbda3..c6ab2ca 100644
> --- a/src/vdpau_wrapper.c
> +++ b/src/vdpau_wrapper.c
> @@ -99,6 +99,8 @@ static char * _vdp_get_driver_name_from_dri2(
>
>       XFree(device_name);
>       _vdp_DRI2RemoveExtension(display);
> +#else
> +    (void) display; (void) screen;

Those are some annoying warnings.  I'm tempted to say you should just 
build with -Wno-unused-parameter, but meh.  I'll apply this.

>   #endif /* DRI2 */
>       return driver_name;
>   }
> @@ -401,6 +403,7 @@ static VdpStatus pq_set_bg_color_noop(
>       VdpColor * const     background_color
>   )
>   {
> +    (void) presentation_queue; (void) background_color;
>       return VDP_STATUS_OK;
>   }
>
>


-- 
Aaron


More information about the VDPAU mailing list