Mesa (mesa_7_7_branch): st/xorg: Silence unused variable warnings.

Vinson Lee vlee at kemper.freedesktop.org
Sun Dec 27 23:03:22 PST 2009


Module: Mesa
Branch: mesa_7_7_branch
Commit: c441386b0c5c70fc4ae5b3c1eff3fb7f09812a30
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c441386b0c5c70fc4ae5b3c1eff3fb7f09812a30

Author: Vinson Lee <vlee at vmware.com>
Date:   Sun Dec 27 23:02:55 2009 -0800

st/xorg: Silence unused variable warnings.

---

 src/gallium/state_trackers/xorg/xorg_exa.c      |    1 +
 src/gallium/state_trackers/xorg/xorg_exa_tgsi.c |    1 +
 src/gallium/state_trackers/xorg/xorg_renderer.c |    1 +
 3 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/gallium/state_trackers/xorg/xorg_exa.c b/src/gallium/state_trackers/xorg/xorg_exa.c
index 17a032e..37c234a 100644
--- a/src/gallium/state_trackers/xorg/xorg_exa.c
+++ b/src/gallium/state_trackers/xorg/xorg_exa.c
@@ -515,6 +515,7 @@ ExaCopy(PixmapPtr pDstPixmap, int srcX, int srcY, int dstX, int dstY,
 #endif
 
    debug_assert(priv == exa->copy.dst);
+   (void) priv;
 
    if (exa->copy.use_surface_copy) {
       /* XXX: consider exposing >1 box in surface_copy interface.
diff --git a/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c b/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c
index 13a9840..cb09199 100644
--- a/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c
+++ b/src/gallium/state_trackers/xorg/xorg_exa_tgsi.c
@@ -492,6 +492,7 @@ create_fs(struct pipe_context *pipe,
 
    /* it has to be either a fill, a composite op or a yuv conversion */
    debug_assert((is_fill ^ is_composite) ^ is_yuv);
+   (void) is_yuv;
 
    out = ureg_DECL_output(ureg,
                           TGSI_SEMANTIC_COLOR,
diff --git a/src/gallium/state_trackers/xorg/xorg_renderer.c b/src/gallium/state_trackers/xorg/xorg_renderer.c
index cbb84a8..37c8942 100644
--- a/src/gallium/state_trackers/xorg/xorg_renderer.c
+++ b/src/gallium/state_trackers/xorg/xorg_renderer.c
@@ -437,6 +437,7 @@ void renderer_copy_prepare(struct xorg_renderer *r,
                                       PIPE_TEXTURE_2D,
                                       PIPE_TEXTURE_USAGE_RENDER_TARGET,
                                       0));
+   (void) screen;
 
 
    /* set misc state we care about */



More information about the mesa-commit mailing list