From: Brian Paul Date: Fri, 11 May 2012 22:16:11 +0000 (-0600) Subject: llvmpipe: add cast to silence warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=550de24c17fd4873b0200c0d4a61656e184631ac;p=mesa.git llvmpipe: add cast to silence warning --- diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.c b/src/gallium/drivers/llvmpipe/lp_state_fs.c index 2d2391e908c..d16952c2ec1 100644 --- a/src/gallium/drivers/llvmpipe/lp_state_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_state_fs.c @@ -1174,7 +1174,8 @@ llvmpipe_set_constant_buffer(struct pipe_context *pipe, const void *data; if (cb && cb->user_buffer) { - constants = llvmpipe_user_buffer_create(pipe->screen, cb->user_buffer, + constants = llvmpipe_user_buffer_create(pipe->screen, + (void *) cb->user_buffer, cb->buffer_size, PIPE_BIND_CONSTANT_BUFFER); }