draw: Remove unused variables.
authorVinson Lee <vlee@freedesktop.org>
Sun, 15 Jan 2012 07:31:03 +0000 (23:31 -0800)
committerVinson Lee <vlee@freedesktop.org>
Sat, 28 Jan 2012 19:22:48 +0000 (11:22 -0800)
Fix this GCC warning.
draw_pipe_clip.c: In function ‘interp’:
draw_pipe_clip.c:122:13: warning: variable ‘clip_dist’ set but not used
[-Wunused-but-set-variable]

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/auxiliary/draw/draw_pipe_clip.c

index f7019725fdf3f59414c71013daf8003be139ec32..4da4d653d997bb50b5cead9df88c69e8c969990a 100644 (file)
@@ -119,12 +119,8 @@ static void interp( const struct clip_stage *clip,
    const unsigned nr_attrs = draw_current_shader_outputs(clip->stage.draw);
    const unsigned pos_attr = draw_current_shader_position_output(clip->stage.draw);
    const unsigned clip_attr = draw_current_shader_clipvertex_output(clip->stage.draw);
-   unsigned clip_dist[2];
    unsigned j;
 
-   clip_dist[0] = draw_current_shader_clipdistance_output(clip->stage.draw, 0);
-   clip_dist[1] = draw_current_shader_clipdistance_output(clip->stage.draw, 1);
-
    /* Vertex header.
     */
    dst->clipmask = 0;