projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16bd2c6
)
gallivm: init vars to silence gcc warnings
author
Brian Paul
<brianp@vmware.com>
Wed, 5 Apr 2017 19:53:41 +0000
(13:53 -0600)
committer
Brian Paul
<brianp@vmware.com>
Fri, 7 Apr 2017 19:46:44 +0000
(13:46 -0600)
Silence warnings about using possibly uninitialized values.
Signed-off-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_sample.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_sample.c
b/src/gallium/auxiliary/gallivm/lp_bld_sample.c
index a4b3a7b834803594ec2f784bd4290d01333371e1..a1dc61d40f62bd4b2d910491e05a31a6648a0772 100644
(file)
--- a/
src/gallium/auxiliary/gallivm/lp_bld_sample.c
+++ b/
src/gallium/auxiliary/gallivm/lp_bld_sample.c
@@
-1412,8
+1412,8
@@
lp_build_unnormalized_coords(struct lp_build_sample_context *bld,
{
const unsigned dims = bld->dims;
LLVMValueRef width;
- LLVMValueRef height;
- LLVMValueRef depth;
+ LLVMValueRef height
= NULL
;
+ LLVMValueRef depth
= NULL
;
lp_build_extract_image_sizes(bld,
&bld->float_size_bld,