Mesa (7.9): glsl: add ir_shader case in switch stmt to silence warning

Brian Paul brianp at kemper.freedesktop.org
Tue Feb 22 07:22:34 PST 2011


Module: Mesa
Branch: 7.9
Commit: ffd90332270f746fdec491fafdcb37fbaf1d0af1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ffd90332270f746fdec491fafdcb37fbaf1d0af1

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Feb 22 08:17:21 2011 -0700

glsl: add ir_shader case in switch stmt to silence warning

---

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

diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index 4f2bce6..14e6b18 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -1714,6 +1714,8 @@ apply_type_qualifier_to_variable(const struct ast_type_qualifier *qual,
 	 if (var->mode == ir_var_in)
 	    var->invariant = true;
 	 break;
+      case ir_shader:
+         ; /* no op */
       }
    }
 



More information about the mesa-commit mailing list