projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
48c289f
)
nvfx: Silence unused variable warning.
author
Vinson Lee
<vlee@vmware.com>
Sun, 22 Aug 2010 07:16:54 +0000
(
00:16
-0700)
committer
Vinson Lee
<vlee@vmware.com>
Sun, 22 Aug 2010 07:16:54 +0000
(
00:16
-0700)
The variable is used but only in the body of an assert.
src/gallium/drivers/nvfx/nv04_2d.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/nvfx/nv04_2d.c
b/src/gallium/drivers/nvfx/nv04_2d.c
index c7d53a786f28ded6e7044ed08744939a5b821e56..3761002bcb990c3040fd25c24bad4325dec45228 100644
(file)
--- 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));