From: Vinson Lee Date: Tue, 24 Aug 2010 05:27:49 +0000 (-0700) Subject: glsl: Silence unused variable warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5df3cc286fa2607897944d478081014929b38ec;p=mesa.git glsl: Silence unused variable warning. The variable is used but only in the body of an assert. --- diff --git a/src/glsl/glsl_types.cpp b/src/glsl/glsl_types.cpp index 1da2fd76dee..2e5c2ecf048 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);