Mesa (master): r300g: Remove unused variable.

Vinson Lee vlee at kemper.freedesktop.org
Sun Sep 26 10:09:10 UTC 2010


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

Author: Vinson Lee <vlee at vmware.com>
Date:   Sun Sep 26 03:08:14 2010 -0700

r300g: Remove unused variable.

Fixes this GCC warning.
r300_state.c: In function 'r300_create_rs_state':
r300_state.c:925: warning: unused variable 'i'

---

 src/gallium/drivers/r300/r300_state.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c
index cfb0a85..f2479a9 100644
--- a/src/gallium/drivers/r300/r300_state.c
+++ b/src/gallium/drivers/r300/r300_state.c
@@ -922,7 +922,6 @@ static void* r300_create_rs_state(struct pipe_context* pipe,
                                   const struct pipe_rasterizer_state* state)
 {
     struct r300_rs_state* rs = CALLOC_STRUCT(r300_rs_state);
-    int i;
     float psiz;
     uint32_t vap_control_status;    /* R300_VAP_CNTL_STATUS: 0x2140 */
     uint32_t point_size;            /* R300_GA_POINT_SIZE: 0x421c */




More information about the mesa-commit mailing list