[Mesa-dev] [PATCH 1/3] gallivm: init vars to silence gcc warnings
Brian Paul
brianp at vmware.com
Thu Apr 6 18:50:36 UTC 2017
Silence warnings about using possibly uninitialized values.
---
src/gallium/auxiliary/gallivm/lp_bld_sample.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample.c b/src/gallium/auxiliary/gallivm/lp_bld_sample.c
index a4b3a7b..a1dc61d 100644
--- 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,
--
1.9.1
More information about the mesa-dev
mailing list