glsl2: Silence unused added variable gcc warning.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 16 Mar 2011 09:16:01 +0000 (09:16 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 16 Mar 2011 09:16:01 +0000 (09:16 +0000)
src/glsl/glsl_symbol_table.cpp

index 2f291d4f97fe95e8a9c33b1aa085a611e8bbf695..bcb65d30182a131563700b6d96cc2ab7dc94ef49 100644 (file)
@@ -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)