[Mesa-dev] [PATCH mesa] st/xvmc: fix a couple 'unused-but-set-variable' warnings
Christian König
deathsimple at vodafone.de
Wed Jul 13 11:49:21 UTC 2016
Am 13.07.2016 um 00:41 schrieb Eric Engestrom:
> Signed-off-by: Eric Engestrom <eric at engestrom.ch>
Reviewed-by: Christian König <christian.koenig at amd.com>
> ---
> src/gallium/state_trackers/xvmc/surface.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/src/gallium/state_trackers/xvmc/surface.c b/src/gallium/state_trackers/xvmc/surface.c
> index 199712b..93ec708 100644
> --- a/src/gallium/state_trackers/xvmc/surface.c
> +++ b/src/gallium/state_trackers/xvmc/surface.c
> @@ -34,6 +34,7 @@
> #include "pipe/p_video_state.h"
> #include "pipe/p_state.h"
>
> +#include "util/macros.h"
> #include "util/u_inlines.h"
> #include "util/u_memory.h"
> #include "util/u_math.h"
> @@ -226,8 +227,8 @@ Status XvMCRenderSurface(Display *dpy, XvMCContext *context, unsigned int pictur
>
> XvMCContextPrivate *context_priv;
> XvMCSurfacePrivate *target_surface_priv;
> - XvMCSurfacePrivate *past_surface_priv;
> - XvMCSurfacePrivate *future_surface_priv;
> + MAYBE_UNUSED XvMCSurfacePrivate *past_surface_priv;
> + MAYBE_UNUSED XvMCSurfacePrivate *future_surface_priv;
> XvMCMacroBlock *xvmc_mb;
>
> XVMC_MSG(XVMC_TRACE, "[XvMC] Rendering to surface %p, with past %p and future %p\n",
More information about the mesa-dev
mailing list