[Piglit] [PATCH 2/2] shader_runner_gles2: Remove cast warning

Tom Gall tom.gall at linaro.org
Wed Jan 9 16:50:54 PST 2013


Looks good!
Reviewed-by: Tom Gall <tom.gall at linaro.org>

On Wed, Jan 9, 2013 at 2:31 PM, Chad Versace
<chad.versace at linux.intel.com> wrote:
> Removes the warning:
>   shader_runner.c:1078:7: warning: assignment makes pointer from integer
>                           without a cast [enabled by default]
>
> CC: Tom Gall <tom.gall at linaro.org>
> Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
> ---
>  tests/shaders/shader_runner_gles_workarounds.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/shaders/shader_runner_gles_workarounds.h b/tests/shaders/shader_runner_gles_workarounds.h
> index 455c9af..2b91f63 100644
> --- a/tests/shaders/shader_runner_gles_workarounds.h
> +++ b/tests/shaders/shader_runner_gles_workarounds.h
> @@ -125,7 +125,7 @@ unsupported_function(const char *name, ...)
>  #define glShadeModel(...)                              UNSUPPORTED_FUNCTION(glShadeModel, 0, __VA_ARGS__)
>
>  #if defined(PIGLIT_USE_OPENGL_ES2)
> -#define glMapBuffer(...) UNSUPPORTED_FUNCTION(glMapBuffer, 0, __VA_ARGS__)
> +#define glMapBuffer(...) UNSUPPORTED_FUNCTION(glMapBuffer, NULL, __VA_ARGS__)
>  #define glUnmapBuffer(...) UNSUPPORTED_FUNCTION(glUnmapBuffer, 0, __VA_ARGS__)
>  #define glUniform1ui(...) UNSUPPORTED_FUNCTION(glUniform1ui, 0, __VA_ARGS__)
>  #define glUniform2uiv(...) UNSUPPORTED_FUNCTION(glUniform2uiv, 0, __VA_ARGS__)
> --
> 1.8.1
>



-- 
Regards,
Tom

"Where's the kaboom!? There was supposed to be an earth-shattering
kaboom!" Marvin Martian
Graphics Working Group | Linaro.org │ Open source software for ARM SoCs
w) tom.gall att linaro.org
h) tom_gall att mac.com


More information about the Piglit mailing list