summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/xvmc
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2016-07-12 23:41:50 +0100
committerEmil Velikov <[email protected]>2016-08-24 11:32:00 +0100
commitf6b9fb6e4c9c349b87153ae96fd507c0ee5657c9 (patch)
tree35abd5db7f1b6c4074d00b43a75b05fb40e8a89e /src/gallium/state_trackers/xvmc
parent49dad1aafda974dd676dfd2c87da071749e1334f (diff)
st/xvmc: fix a couple 'unused-but-set-variable' warnings
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Christian König <[email protected]> Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/xvmc')
-rw-r--r--src/gallium/state_trackers/xvmc/surface.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gallium/state_trackers/xvmc/surface.c b/src/gallium/state_trackers/xvmc/surface.c
index a4cd2aa2e12..329e881d873 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",