Mesa (master): draw: Remove unused variables.

Vinson Lee vlee at kemper.freedesktop.org
Sat Jan 28 19:24:45 UTC 2012


Module: Mesa
Branch: master
Commit: 743432039ccd4c4af03aa4ef274a7922f871bc38
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=743432039ccd4c4af03aa4ef274a7922f871bc38

Author: Vinson Lee <vlee at freedesktop.org>
Date:   Sat Jan 14 23:31:03 2012 -0800

draw: Remove unused variables.

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 at freedesktop.org>
Reviewed-by: Dave Airlie <airlied at redhat.com>

---

 src/gallium/auxiliary/draw/draw_pipe_clip.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_pipe_clip.c b/src/gallium/auxiliary/draw/draw_pipe_clip.c
index f701972..4da4d65 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_clip.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_clip.c
@@ -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;




More information about the mesa-commit mailing list