Mesa (master): glsl: Silence unused variable warning.

Vinson Lee vlee at kemper.freedesktop.org
Sat Aug 21 23:22:48 UTC 2010


Module: Mesa
Branch: master
Commit: 13b3d4c23d9d088a5a2b3bd657f1f163e42e4d8b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=13b3d4c23d9d088a5a2b3bd657f1f163e42e4d8b

Author: Vinson Lee <vlee at vmware.com>
Date:   Sat Aug 21 16:21:41 2010 -0700

glsl: Silence unused variable warning.

The variable is actually used but only in the body of an assert.

---

 src/glsl/ast_to_hir.cpp |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index 397c84e..b60bb2f 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;
    }
 
 




More information about the mesa-commit mailing list