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

Brian Paul brianp at vmware.com
Thu Aug 6 06:52:46 PDT 2015


On 08/05/2015 09:16 PM, Vinson Lee wrote:
> 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"
>


Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the Piglit mailing list