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

Vinson Lee vlee at freedesktop.org
Wed Jun 25 17:03:30 PDT 2014


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 };
-- 
1.9.1



More information about the Piglit mailing list