projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be99100
)
glsl: Silence unused variable warning.
author
Vinson Lee
<vlee@vmware.com>
Sat, 21 Aug 2010 23:21:41 +0000
(16:21 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Sat, 21 Aug 2010 23:22:18 +0000
(16:22 -0700)
The variable is actually used but only in the body of an assert.
src/glsl/ast_to_hir.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/ast_to_hir.cpp
b/src/glsl/ast_to_hir.cpp
index 397c84e3438a583e7b13bbc9ba4e6b4e9ced2b41..b60bb2f0a0a3abb41878c12d84137ef8af1e6bcc 100644
(file)
--- a/
src/glsl/ast_to_hir.cpp
+++ b/
src/glsl/ast_to_hir.cpp
@@
-1973,6
+1973,7
@@
ast_declarator_list::hir(exec_list *instructions,
const bool added_variable =
state->symbols->add_variable(var->name, var);
assert(added_variable);
+ (void) added_variable;
}