arb_query_buffer_object: Remove unused variable.

Submitted by Vinson Lee on April 6, 2016, 1:56 a.m.

Details

Message ID 1459907775-27039-1-git-send-email-vlee@freedesktop.org
State New
Headers show
Series "arb_query_buffer_object: Remove unused variable." ( rev: 1 ) in Piglit

Browsing this patch as part of:
"arb_query_buffer_object: Remove unused variable." rev 1 in Piglit
<< prev patch [1/1] next patch >>

Commit Message

Vinson Lee April 6, 2016, 1:56 a.m.
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@freedesktop.org>
---
 tests/spec/arb_query_buffer_object/qbo.c | 1 -
 1 file changed, 1 deletion(-)

Patch hide | download patch | download mbox

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;