From: José Fonseca Date: Wed, 16 Mar 2011 09:16:01 +0000 (+0000) Subject: glsl2: Silence unused added variable gcc warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6b3713f8b864cbe238b0e7efb28bca54b91ef0f8;p=mesa.git glsl2: Silence unused added variable gcc warning. --- diff --git a/src/glsl/glsl_symbol_table.cpp b/src/glsl/glsl_symbol_table.cpp index 2f291d4f97f..bcb65d30182 100644 --- a/src/glsl/glsl_symbol_table.cpp +++ b/src/glsl/glsl_symbol_table.cpp @@ -137,6 +137,7 @@ void glsl_symbol_table::add_global_function(ir_function *f) symbol_table_entry *entry = new(mem_ctx) symbol_table_entry(f); int added = _mesa_symbol_table_add_global_symbol(table, -1, f->name, entry); assert(added == 0); + (void)added; } ir_variable *glsl_symbol_table::get_variable(const char *name)