[Mesa-dev] [PATCH 2/2] glsl: silence warning about unhandled ast_unsized_array_dim case in switch
Timothy Arceri
t_arceri at yahoo.com.au
Thu Oct 15 14:29:52 PDT 2015
On Thu, 2015-10-15 at 07:27 -0600, Brian Paul wrote:
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-dev
mailing list