From: michal Date: Fri, 26 Oct 2007 16:20:53 +0000 (+0100) Subject: Silence compiler warnings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=187c164bb6fa794f59181df89e72ff8c543238c6;p=mesa.git Silence compiler warnings. --- diff --git a/src/mesa/pipe/softpipe/sp_prim_setup.c b/src/mesa/pipe/softpipe/sp_prim_setup.c index 73b18b776bc..0b1b592bbe3 100644 --- a/src/mesa/pipe/softpipe/sp_prim_setup.c +++ b/src/mesa/pipe/softpipe/sp_prim_setup.c @@ -853,7 +853,7 @@ setup_line(struct draw_stage *stage, struct prim_header *prim) for (i = 0; i < dx; i++) { if (!sp->rasterizer->line_stipple_enable || stipple_test(sp->line_stipple_counter, - sp->rasterizer->line_stipple_pattern, + (ushort) sp->rasterizer->line_stipple_pattern, sp->rasterizer->line_stipple_factor + 1)) { plot(setup, x0, y0); } @@ -880,7 +880,7 @@ setup_line(struct draw_stage *stage, struct prim_header *prim) for (i = 0; i < dy; i++) { if (!sp->rasterizer->line_stipple_enable || stipple_test(sp->line_stipple_counter, - sp->rasterizer->line_stipple_pattern, + (ushort) sp->rasterizer->line_stipple_pattern, sp->rasterizer->line_stipple_factor + 1)) { plot(setup, x0, y0); } @@ -1184,7 +1184,7 @@ void sp_vbuf_setup_draw( struct pipe_context *pipe, struct setup_stage *setup = setup_stage( softpipe->setup ); struct prim_header prim; unsigned vertex_size = setup->stage.draw->vertex_info.size * sizeof(float); - int i, j; + unsigned i, j; prim.det = 0; prim.reset_line_stipple = 0;