[Piglit] [PATCH] arb_query_buffer_object: Remove unused variable.

Vinson Lee vlee at freedesktop.org
Wed Apr 6 01:56:15 UTC 2016


Fix GCC unused-const-variable warning.

qbo.c:46:20: warning: ‘red’ defined but not used [-Wunused-const-variable=]
 static const float red[] = {1, 0, 0, 1};
                    ^~~

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/spec/arb_query_buffer_object/qbo.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tests/spec/arb_query_buffer_object/qbo.c b/tests/spec/arb_query_buffer_object/qbo.c
index 0cee6c8..e5b0d14 100644
--- a/tests/spec/arb_query_buffer_object/qbo.c
+++ b/tests/spec/arb_query_buffer_object/qbo.c
@@ -43,7 +43,6 @@ PIGLIT_GL_TEST_CONFIG_END
 #define BUFFER_OFFSET(i) ((GLint *)((unsigned char*)NULL + (i)))
 
 static const float green[] = {0, 1, 0, 1};
-static const float red[] = {1, 0, 0, 1};
 
 static unsigned query;
 static unsigned qbo;
-- 
2.8.0



More information about the Piglit mailing list