From a7ba29f6d8663e8ed0e032c0a2e266feb4fc4b2e Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 4 Mar 2016 18:19:48 -0700 Subject: [PATCH] gallium/tests: silence warning in compute.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit compute.c: In function ‘launch_grid’: compute.c:435:20: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default] info.input = input; ^ Maybe the pipe_grid_info::input field should be const void *? Reviewed-by: Samuel Pitoiset --- src/gallium/tests/trivial/compute.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/tests/trivial/compute.c b/src/gallium/tests/trivial/compute.c index 288cf2ad629..5d5e0b0b8c3 100644 --- a/src/gallium/tests/trivial/compute.c +++ b/src/gallium/tests/trivial/compute.c @@ -421,7 +421,7 @@ static void destroy_globals(struct context *ctx) static void launch_grid(struct context *ctx, const uint *block_layout, const uint *grid_layout, uint32_t pc, - const void *input) + void *input) { struct pipe_context *pipe = ctx->pipe; struct pipe_grid_info info; -- 2.30.2