summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/indices
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-08-29 18:02:23 -0700
committerEric Anholt <[email protected]>2014-09-02 13:55:15 -0700
commit6720d1573a71684b7a032fe6f371056b0818f3a6 (patch)
treeedf05af7cd2bb40db8f75a94a2ae53564707630f /src/gallium/auxiliary/indices
parent1718ba30e560d4b083ee5379b84d190315fd998f (diff)
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]>
Diffstat (limited to 'src/gallium/auxiliary/indices')
-rw-r--r--src/gallium/auxiliary/indices/u_primconvert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/indices/u_primconvert.c b/src/gallium/auxiliary/indices/u_primconvert.c
index abcf0d710d7..c8d1d66a858 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));