projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1718ba3
)
u_primconvert: Shut up compiler warning.
author
Eric Anholt
<eric@anholt.net>
Sat, 30 Aug 2014 01:02:23 +0000
(18:02 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 2 Sep 2014 20:55:15 +0000
(13:55 -0700)
gcc isn't detecting that src is set before used, since both are under if
(info->indexed).
Reviewed-by: Rob Clark <robclark@freedesktop.org>
src/gallium/auxiliary/indices/u_primconvert.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/indices/u_primconvert.c
b/src/gallium/auxiliary/indices/u_primconvert.c
index abcf0d710d7925d8068e650f659f7976a4cee2f0..c8d1d66a85888519d2870c8b917176a284095c7c 100644
(file)
--- 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));