Mesa (master): draw: remove set-but-unused variable

Marek Olšák mareko at kemper.freedesktop.org
Sun May 1 12:16:42 UTC 2011


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Sun May  1 14:12:47 2011 +0200

draw: remove set-but-unused variable

---

 src/gallium/auxiliary/draw/draw_vertex.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_vertex.c b/src/gallium/auxiliary/draw/draw_vertex.c
index a4f5e88..a1b2b8f 100644
--- a/src/gallium/auxiliary/draw/draw_vertex.c
+++ b/src/gallium/auxiliary/draw/draw_vertex.c
@@ -60,10 +60,9 @@ draw_compute_vertex_size(struct vertex_info *vinfo)
 void
 draw_dump_emitted_vertex(const struct vertex_info *vinfo, const uint8_t *data)
 {
-   unsigned i, j;
+   unsigned i;
 
    for (i = 0; i < vinfo->num_attribs; i++) {
-      j = vinfo->attrib[i].src_index;
       switch (vinfo->attrib[i].emit) {
       case EMIT_OMIT:
          debug_printf("EMIT_OMIT:");




More information about the mesa-commit mailing list