Mesa (master): glsl: silence warning about unhandled ast_unsized_array_dim case in switch
Brian Paul
brianp at kemper.freedesktop.org
Fri Oct 16 17:34:56 UTC 2015
Module: Mesa
Branch: master
Commit: cb473c46feb17d652f69836bf0d8843803fe77cd
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=cb473c46feb17d652f69836bf0d8843803fe77cd
Author: Brian Paul <brianp at vmware.com>
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 <t_arceri at yahoo.com.au>
---
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;
More information about the mesa-commit
mailing list