Mesa (master): swrast: silence unused var warnings in non-debug builds

Brian Paul brianp at kemper.freedesktop.org
Fri Oct 7 07:24:34 PDT 2011


Module: Mesa
Branch: master
Commit: 26b8dfc8cadf0f1a8604fc77b226cc7de005f9ca
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=26b8dfc8cadf0f1a8604fc77b226cc7de005f9ca

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Oct  7 08:22:35 2011 -0600

swrast: silence unused var warnings in non-debug builds

---

 src/mesa/swrast/s_texfilter.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/mesa/swrast/s_texfilter.c b/src/mesa/swrast/s_texfilter.c
index ca9133b..121e0fc 100644
--- a/src/mesa/swrast/s_texfilter.c
+++ b/src/mesa/swrast/s_texfilter.c
@@ -1369,6 +1369,7 @@ opt_sample_rgb_2d(struct gl_context *ctx,
    ASSERT(img->Border==0);
    ASSERT(img->TexFormat == MESA_FORMAT_RGB888);
    ASSERT(swImg->_IsPowerOfTwo);
+   (void) swImg;
 
    for (k=0; k<n; k++) {
       GLint i = IFLOOR(texcoords[k][0] * width) & colMask;
@@ -1412,6 +1413,7 @@ opt_sample_rgba_2d(struct gl_context *ctx,
    ASSERT(img->Border==0);
    ASSERT(img->TexFormat == MESA_FORMAT_RGBA8888);
    ASSERT(swImg->_IsPowerOfTwo);
+   (void) swImg;
 
    for (i = 0; i < n; i++) {
       const GLint col = IFLOOR(texcoords[i][0] * width) & colMask;



More information about the mesa-commit mailing list