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

Author: Brian Paul <[email protected]>
Date:   Thu Oct 15 07:26:49 2015 -0600

glsl: silence warning about unhandled ast_unsized_array_dim case in switch

Reviewed-by: Timothy Arceri <[email protected]>

---

 src/glsl/ast_to_hir.cpp |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp
index cd40fe3..ede02d9 100644
--- a/src/glsl/ast_to_hir.cpp
+++ b/src/glsl/ast_to_hir.cpp
@@ -2017,6 +2017,9 @@ ast_expression::has_sequence_subexpression() const
 
    case ast_function_call:
       unreachable("should be handled by ast_function_expression::hir");
+
+   case ast_unsized_array_dim:
+      unreachable("ast_unsized_array_dim: Should never get here.");
    }
 
    return false;

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to