Mesa (master): nvfx: Silence unused variable warning.
Vinson Lee
vlee at kemper.freedesktop.org
Sun Aug 22 07:17:26 UTC 2010
Module: Mesa
Branch: master
Commit: 928830606f267aa828ede92cf0a643eb5901c3e2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=928830606f267aa828ede92cf0a643eb5901c3e2
Author: Vinson Lee <vlee at vmware.com>
Date: Sun Aug 22 00:16:54 2010 -0700
nvfx: Silence unused variable warning.
The variable is used but only in the body of an assert.
---
src/gallium/drivers/nvfx/nv04_2d.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/nvfx/nv04_2d.c b/src/gallium/drivers/nvfx/nv04_2d.c
index c7d53a7..3761002 100644
--- a/src/gallium/drivers/nvfx/nv04_2d.c
+++ b/src/gallium/drivers/nvfx/nv04_2d.c
@@ -247,6 +247,7 @@ nv04_region_assert(struct nv04_region* rgn, unsigned w, unsigned h)
assert(rgn->offset <= (int)rgn->bo->size);
assert(end <= rgn->bo->size);
+ (void) end;
if(!rgn->pitch) {
assert(util_is_pot(rgn->w));
assert(util_is_pot(rgn->h));
More information about the mesa-commit
mailing list