projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b48f20d
)
glsl: Silence unused variable warning.
author
Vinson Lee
<vlee@vmware.com>
Tue, 24 Aug 2010 05:27:49 +0000
(22:27 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Tue, 24 Aug 2010 05:27:49 +0000
(22:27 -0700)
The variable is used but only in the body of an assert.
src/glsl/glsl_types.cpp
patch
|
blob
|
history
diff --git
a/src/glsl/glsl_types.cpp
b/src/glsl/glsl_types.cpp
index 1da2fd76dee38e1d4bcce526ad58397a646285ad..2e5c2ecf048b01afc89805ed2c72ba574579765c 100644
(file)
--- a/
src/glsl/glsl_types.cpp
+++ b/
src/glsl/glsl_types.cpp
@@
-243,6
+243,7
@@
glsl_type::generate_constructor(glsl_symbol_table *symtab) const
bool added = symtab->add_function(name, f);
assert(added);
+ (void) added;
ir_function_signature *const sig = new(ctx) ir_function_signature(this);
f->add_signature(sig);