[Piglit] [PATCH 2/2] shader_runner: add casts to silence char** vs const GLchar** warnings
Jose Fonseca
jfonseca at vmware.com
Thu Sep 20 08:01:15 PDT 2012
Both patches:
Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
----- Original Message -----
> ---
> tests/shaders/shader_runner.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tests/shaders/shader_runner.c
> b/tests/shaders/shader_runner.c
> index 0aff387..1d6cfe0 100644
> --- a/tests/shaders/shader_runner.c
> +++ b/tests/shaders/shader_runner.c
> @@ -137,12 +137,12 @@ compile_glsl(GLenum target, bool release_text)
> shader_string_sizes[1] = shader_string_size;
>
> piglit_ShaderSource(shader, 2,
> - shader_strings,
> + (const GLchar **) shader_strings,
> shader_string_sizes);
>
> } else {
> piglit_ShaderSource(shader, 1,
> - &shader_string,
> + (const GLchar **) &shader_string,
> &shader_string_size);
> }
>
> --
> 1.7.3.4
>
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
>
More information about the Piglit
mailing list