[Piglit] [PATCH] glsl-fs-color-matrix: Remove unused variable.

Brian Paul brianp at vmware.com
Thu Jun 26 05:56:13 PDT 2014


On 06/25/2014 06:03 PM, Vinson Lee wrote:
> Fix clang unused-const-variable warning.
>
> glsl-fs-color-matrix.c:84:22: warning: unused variable 'black' [-Wunused-const-variable]
> static const GLfloat black[4] = { 0.0, 0.0, 0.0, 1.0 };
>                       ^
>
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>   tests/shaders/glsl-fs-color-matrix.c | 1 -
>   1 file changed, 1 deletion(-)
>
> diff --git a/tests/shaders/glsl-fs-color-matrix.c b/tests/shaders/glsl-fs-color-matrix.c
> index 302ce63..b9a5769 100644
> --- a/tests/shaders/glsl-fs-color-matrix.c
> +++ b/tests/shaders/glsl-fs-color-matrix.c
> @@ -81,7 +81,6 @@ static const GLfloat tex_coord[] = {
>   	0.0, 1.0,
>   };
>
> -static const GLfloat black[4] = { 0.0, 0.0, 0.0, 1.0 };
>   static const GLfloat white[4] = { 1.0, 1.0, 1.0, 1.0 };
>   static const GLfloat red[4]   = { 1.0, 0.0, 0.0, 1.0 };
>   static const GLfloat green[4] = { 0.0, 1.0, 0.0, 1.0 };
>

For all 6 unused-var-removal patches:
Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the Piglit mailing list