From: Brian Paul Date: Wed, 5 Apr 2017 19:53:41 +0000 (-0600) Subject: gallivm: init vars to silence gcc warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c77c381fae21d26966d9072ce61fa3879eee8751;p=mesa.git gallivm: init vars to silence gcc warnings Silence warnings about using possibly uninitialized values. Signed-off-by: Brian Paul --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample.c b/src/gallium/auxiliary/gallivm/lp_bld_sample.c index a4b3a7b8348..a1dc61d40f6 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,