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

Vinson Lee vlee at freedesktop.org
Wed Jun 25 16:45:42 PDT 2014


Fix clang unused-const-variable variables.

blendminmax.c:47:22: warning: unused variable 'Near' [-Wunused-const-variable]
static const GLfloat Near = 5.0, Far = 25.0;
                     ^
blendminmax.c:47:34: warning: unused variable 'Far' [-Wunused-const-variable]
static const GLfloat Near = 5.0, Far = 25.0;
                                 ^

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

diff --git a/tests/general/blendminmax.c b/tests/general/blendminmax.c
index 61cc679..ca5c0ea 100644
--- a/tests/general/blendminmax.c
+++ b/tests/general/blendminmax.c
@@ -44,8 +44,6 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
 
 PIGLIT_GL_TEST_CONFIG_END
 
-static const GLfloat Near = 5.0, Far = 25.0;
-
 enum piglit_result
 piglit_display(void)
 {
-- 
1.9.1



More information about the Piglit mailing list