On 25 August 2016 at 13:24, Francesco Ansanelli <franci...@gmail.com> wrote:
> Signed-off-by: Francesco Ansanelli <franci...@gmail.com>
> ---
>  src/mesa/main/program_resource.c |    1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/mesa/main/program_resource.c 
> b/src/mesa/main/program_resource.c
> index 6ddbdad..51dbe95 100644
> --- a/src/mesa/main/program_resource.c
> +++ b/src/mesa/main/program_resource.c
> @@ -105,6 +105,7 @@ stage_from_program_interface(GLenum programInterface)
>        return MESA_SHADER_COMPUTE;
>     default:
>        assert(!"unexpected programInterface value");
> +      return -1;
This should be unreachable() since programInterface is validated
further up the stack by is_subroutine_uniform_program_interface().

-Emil
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to