[Piglit] [PATCH] gl-3.0: Remove unused variable.

Timothy Arceri tarceri at itsqueeze.com
Wed May 30 00:58:55 UTC 2018


Thanks!

Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

On 30/05/18 10:10, Vinson Lee wrote:
> Fix build warning.
> 
> dlist-uint-uniforms.c: In function ‘piglit_init’:
> dlist-uint-uniforms.c:48:11: warning: unused variable ‘glsl_version’ [-Wunused-variable]
>    unsigned glsl_version;
>             ^~~~~~~~~~~~
> 
> Fixes: 6ab75f7eb5e1 ("gl-3.0: test glUniform*ui{v} functions are compiled into display lists")
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>   tests/spec/gl-3.0/dlist-uint-uniforms.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/tests/spec/gl-3.0/dlist-uint-uniforms.c b/tests/spec/gl-3.0/dlist-uint-uniforms.c
> index b1f52c98c177..c2e7e481d2c6 100644
> --- a/tests/spec/gl-3.0/dlist-uint-uniforms.c
> +++ b/tests/spec/gl-3.0/dlist-uint-uniforms.c
> @@ -45,7 +45,6 @@ static bool Uniformui(void);
>   void
>   piglit_init(int argc, char **argv)
>   {
> -	unsigned glsl_version;
>   	bool pass = true;
>   
>   	pass = Uniformui() && pass;
> 


More information about the Piglit mailing list