[Mesa-dev] [PATCH] mesa/main: missing return in a non-void function

Alejandro Piñeiro apinheiro at igalia.com
Thu Aug 25 14:07:47 UTC 2016


Reviewed-by: Alejandro Piñeiro <apinheiro at igalia.com>

On 25/08/16 14:24, Francesco Ansanelli wrote:
> Signed-off-by: Francesco Ansanelli <francians at 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;
>     }
>  }
>  
> 

-- 
Alejandro Piñeiro <apinheiro at igalia.com>


More information about the mesa-dev mailing list