From: Marek Olšák Date: Tue, 9 Oct 2012 12:33:16 +0000 (+0200) Subject: i915g: fix unused variable and type conversion warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cf9081b37cbfaa4f1cdcb1b53dd44bb2a688bfb2;p=mesa.git i915g: fix unused variable and type conversion warnings --- diff --git a/src/gallium/drivers/i915/i915_state.c b/src/gallium/drivers/i915/i915_state.c index a00e2fb3af4..d96ac7ab938 100644 --- a/src/gallium/drivers/i915/i915_state.c +++ b/src/gallium/drivers/i915/i915_state.c @@ -931,7 +931,6 @@ static void i915_set_vertex_buffers(struct pipe_context *pipe, { struct i915_context *i915 = i915_context(pipe); struct draw_context *draw = i915->draw; - int i; util_copy_vertex_buffers(i915->vertex_buffers, &i915->nr_vertex_buffers, diff --git a/src/gallium/drivers/i915/i915_surface.c b/src/gallium/drivers/i915/i915_surface.c index 6f5a654069f..331d6e230d0 100644 --- a/src/gallium/drivers/i915/i915_surface.c +++ b/src/gallium/drivers/i915/i915_surface.c @@ -62,7 +62,7 @@ i915_util_blitter_save_states(struct i915_context *i915) util_blitter_save_fragment_sampler_states(i915->blitter, i915->num_samplers, - i915->sampler); + (void**)i915->sampler); util_blitter_save_fragment_sampler_views(i915->blitter, i915->num_fragment_sampler_views, i915->fragment_sampler_views);