[Piglit] [PATCH] arb_tessellation_shader-invalid-get-program-params: Remove unused variable.

Vinson Lee vlee at freedesktop.org
Wed Aug 5 20:16:01 PDT 2015


Fix unused-const-variable warning.

invalid-get-program-params.c:47:26: warning: unused variable 'vs_source' [-Wunused-const-variable]
static const char *const vs_source =
                         ^

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 tests/spec/arb_tessellation_shader/invalid-get-program-params.c | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/tests/spec/arb_tessellation_shader/invalid-get-program-params.c b/tests/spec/arb_tessellation_shader/invalid-get-program-params.c
index ce9e2b2..4cbe29a 100644
--- a/tests/spec/arb_tessellation_shader/invalid-get-program-params.c
+++ b/tests/spec/arb_tessellation_shader/invalid-get-program-params.c
@@ -44,10 +44,6 @@ PIGLIT_GL_TEST_CONFIG_BEGIN
 PIGLIT_GL_TEST_CONFIG_END
 
 
-static const char *const vs_source =
-"#version 150\n"
-"void main() { gl_Position = vec4(0.0); }\n";
-
 static const char *const tcs_source =
 "#version 150\n"
 "#extension GL_ARB_tessellation_shader: require\n"
-- 
2.1.4



More information about the Piglit mailing list