[Piglit] [PATCH] fbo-incomplete-invalid-texture: Remove unused variable.

Vinson Lee vlee at freedesktop.org
Wed Jun 25 16:34:23 PDT 2014


Fix clang unused-const-variable warning.

fbo-incomplete-invalid-texture.c:40:20: warning: unused variable 'green' [-Wunused-const-variable]
static const float green[] = { 0.f, 1.f, 0.f, 1.f };
                   ^

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/fbo/fbo-incomplete-invalid-texture.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tests/fbo/fbo-incomplete-invalid-texture.c b/tests/fbo/fbo-incomplete-invalid-texture.c
index 5c63fac..56fa75e 100644
--- a/tests/fbo/fbo-incomplete-invalid-texture.c
+++ b/tests/fbo/fbo-incomplete-invalid-texture.c
@@ -37,8 +37,6 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
 
 PIGLIT_GL_TEST_CONFIG_END
 
-static const float green[] = { 0.f, 1.f, 0.f, 1.f };
-
 enum piglit_result
 piglit_display(void)
 {
-- 
1.9.1



More information about the Piglit mailing list