[Piglit] [PATCH] stencil-twoside: Remove unused variables.

Vinson Lee vlee at freedesktop.org
Wed Jun 25 16:58:59 PDT 2014


Fix clang unused-const-variable warnings.

stencil-twoside.c:50:22: warning: unused variable 'Near' [-Wunused-const-variable]
static const GLfloat Near = 5.0, Far = 25.0;
                     ^
stencil-twoside.c:50: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/stencil-twoside.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/tests/general/stencil-twoside.c b/tests/general/stencil-twoside.c
index 396c9a1..00f9d01 100644
--- a/tests/general/stencil-twoside.c
+++ b/tests/general/stencil-twoside.c
@@ -47,9 +47,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