summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-08-22 00:16:54 -0700
committerVinson Lee <[email protected]>2010-08-22 00:16:54 -0700
commit928830606f267aa828ede92cf0a643eb5901c3e2 (patch)
tree25b6ddb97fb87dae2f4cbc0758bf4aae8e30dfdb /src/gallium/drivers/nvfx
parent48c289fb552a3d363b505514b6ea22467f00e318 (diff)
nvfx: Silence unused variable warning.
The variable is used but only in the body of an assert.
Diffstat (limited to 'src/gallium/drivers/nvfx')
-rw-r--r--src/gallium/drivers/nvfx/nv04_2d.c1
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 c7d53a786f2..3761002bcb9 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));