[Piglit] [PATCH] arb_direct_state_access: Remove unused variables.

Vinson Lee vlee at freedesktop.org
Tue Mar 3 17:44:18 PST 2015


Fix Clang unused-const-variable warnings.

gettransformfeedback.c:84:22: warning: unused variable 'out1_ret' [-Wunused-const-variable]
static const GLfloat out1_ret[NUM_INPUTS] = { 0.0, 1.0, 2.0, 4.0};
                     ^
gettransformfeedback.c:85:22: warning: unused variable 'out2_ret' [-Wunused-const-variable]
static const GLfloat out2_ret[NUM_INPUTS] = {-2.0, 0.0, 2.0, 6.0};
                     ^

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/spec/arb_direct_state_access/gettransformfeedback.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/tests/spec/arb_direct_state_access/gettransformfeedback.c b/tests/spec/arb_direct_state_access/gettransformfeedback.c
index dafc235..8ea69bf 100644
--- a/tests/spec/arb_direct_state_access/gettransformfeedback.c
+++ b/tests/spec/arb_direct_state_access/gettransformfeedback.c
@@ -81,8 +81,6 @@ static const char *vstext = {
 
 #define NUM_INPUTS 4
 static const GLfloat inputs[NUM_INPUTS] =   {-1.0, 0.0, 1.0, 3.0};
-static const GLfloat out1_ret[NUM_INPUTS] = { 0.0, 1.0, 2.0, 4.0};
-static const GLfloat out2_ret[NUM_INPUTS] = {-2.0, 0.0, 2.0, 6.0};
 
 struct context_t {
 	struct tbo_state_t {
-- 
2.3.1



More information about the Piglit mailing list