Mesa (master): glsl: Silence unused variable warning.
Vinson Lee
vlee at kemper.freedesktop.org
Tue Aug 24 05:28:26 UTC 2010
Module: Mesa
Branch: master
Commit: e5df3cc286fa2607897944d478081014929b38ec
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e5df3cc286fa2607897944d478081014929b38ec
Author: Vinson Lee <vlee at vmware.com>
Date: Mon Aug 23 22:27:49 2010 -0700
glsl: Silence unused variable warning.
The variable is used but only in the body of an assert.
---
src/glsl/glsl_types.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/glsl/glsl_types.cpp b/src/glsl/glsl_types.cpp
index 1da2fd7..2e5c2ec 100644
--- 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);
More information about the mesa-commit
mailing list