Module: Mesa Branch: master Commit: 460da0db4add19b79050b816e3bef086293ab630 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=460da0db4add19b79050b816e3bef086293ab630
Author: Vinson Lee <[email protected]> Date: Wed Oct 20 14:10:26 2010 -0700 glsl: Add assert for unhandled ir_shader case. Silences this GCC warning. ast_to_hir.cpp: In function 'void apply_type_qualifier_to_variable(const ast_type_qualifier*, ir_variable*, _mesa_glsl_parse_state*, YYLTYPE*)' ast_to_hir.cpp:1768: warning: enumeration value 'ir_shader' not handled in switch --- src/glsl/ast_to_hir.cpp | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index f5ea661..af301e5 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -1785,6 +1785,10 @@ apply_type_qualifier_to_variable(const struct ast_type_qualifier *qual, string = "output"; } break; + + case ir_shader: + assert(!"Should not get here."); + break; } if (fail) { _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
