projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc59790
)
gallivm: Silence uninitialized variable warning.
author
Vinson Lee
<vlee@vmware.com>
Thu, 21 Oct 2010 18:27:35 +0000
(11:27 -0700)
committer
Vinson Lee
<vlee@vmware.com>
Thu, 21 Oct 2010 18:27:35 +0000
(11:27 -0700)
Fixes this GCC warning.
gallivm/lp_bld_tgsi_aos.c: In function 'lp_build_tgsi_aos':
gallivm/lp_bld_tgsi_aos.c:516: warning: 'dst0' may be used uninitialized in this function
gallivm/lp_bld_tgsi_aos.c:516: note: 'dst0' was declared here
src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c
b/src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c
index d5f963be58dc2a708a8e1a120b9cdf94df5fe828..c3c082b2b95334d6d6ebd4d61a083c61ffe9c7c9 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_tgsi_aos.c
@@
-513,7
+513,7
@@
emit_instruction(
{
LLVMValueRef src0, src1, src2;
LLVMValueRef tmp0, tmp1;
- LLVMValueRef dst0;
+ LLVMValueRef dst0
= NULL
;
/*
* Stores and write masks are handled in a general fashion after the long