From: Vinson Lee Date: Sat, 21 Aug 2010 23:21:41 +0000 (-0700) Subject: glsl: Silence unused variable warning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=13b3d4c23d9d088a5a2b3bd657f1f163e42e4d8b;p=mesa.git glsl: Silence unused variable warning. The variable is actually used but only in the body of an assert. --- diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 397c84e3438..b60bb2f0a0a 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -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; }