glsl: Silence unused variable warning.
authorVinson Lee <vlee@vmware.com>
Sat, 21 Aug 2010 23:21:41 +0000 (16:21 -0700)
committerVinson Lee <vlee@vmware.com>
Sat, 21 Aug 2010 23:22:18 +0000 (16:22 -0700)
The variable is actually used but only in the body of an assert.

src/glsl/ast_to_hir.cpp

index 397c84e3438a583e7b13bbc9ba4e6b4e9ced2b41..b60bb2f0a0a3abb41878c12d84137ef8af1e6bcc 100644 (file)
@@ -1973,6 +1973,7 @@ ast_declarator_list::hir(exec_list *instructions,
       const bool added_variable =
         state->symbols->add_variable(var->name, var);
       assert(added_variable);
+      (void) added_variable;
    }