From: Brian Paul Date: Sat, 5 Mar 2016 01:19:48 +0000 (-0700) Subject: gallium/tests: silence warning in compute.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7ba29f6d8663e8ed0e032c0a2e266feb4fc4b2e;p=mesa.git gallium/tests: silence warning in compute.c 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 --- 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;