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

Author: Eric Anholt <[email protected]>
Date:   Fri Aug 29 18:02:23 2014 -0700

u_primconvert: Shut up compiler warning.

gcc isn't detecting that src is set before used, since both are under if
(info->indexed).

Reviewed-by: Rob Clark <[email protected]>

---

 src/gallium/auxiliary/indices/u_primconvert.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/auxiliary/indices/u_primconvert.c 
b/src/gallium/auxiliary/indices/u_primconvert.c
index abcf0d7..c8d1d66 100644
--- a/src/gallium/auxiliary/indices/u_primconvert.c
+++ b/src/gallium/auxiliary/indices/u_primconvert.c
@@ -115,7 +115,7 @@ util_primconvert_draw_vbo(struct primconvert_context *pc,
    struct pipe_transfer *src_transfer = NULL, *dst_transfer = NULL;
    u_translate_func trans_func;
    u_generate_func gen_func;
-   const void *src;
+   const void *src = NULL;
    void *dst;
 
    memset(&new_ib, 0, sizeof(new_ib));

_______________________________________________
mesa-commit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to