Mesa (master): glsl: remove incorrect 'struct' keyword

Brian Paul brianp at kemper.freedesktop.org
Tue Nov 6 15:11:27 UTC 2012


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

Author: Brian Paul <brianp at vmware.com>
Date:   Sun Nov  4 16:43:44 2012 -0700

glsl: remove incorrect 'struct' keyword

ir_variable is a class, not a struct.  Fixes an MSVC warning.

Reviewed-by: Jose Fonseca <jfonseca at vmware.com>

---

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

diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index 5157661..d450aa1 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -4058,7 +4058,7 @@ ast_uniform_block::hir(exec_list *instructions,
       decl_list->hir(&declared_variables, state);
 
       foreach_list_const(node, &declared_variables) {
-	 struct ir_variable *var = (ir_variable *)node;
+	 ir_variable *var = (ir_variable *)node;
 
 	 struct gl_uniform_buffer_variable *ubo_var =
 	    &ubo->Uniforms[ubo->NumUniforms++];




More information about the mesa-commit mailing list