diff options
author | Brian Paul <[email protected]> | 2017-10-03 13:55:38 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-10-03 14:33:00 -0600 |
commit | 33122e8a3db8a2e5a3d512e398ae2c96cf544af3 (patch) | |
tree | 447e8d56f8cd2b84432890a3d058ba8ad29fa92a /src/gallium/auxiliary/gallivm | |
parent | 42eb3052c3537fa9b8a8cbf683c38b30c6e90f1f (diff) |
llvmpipe: silence 'variable may be used uninitialized' warnings
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_format_aos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c index 2f723857f4b..36dedba34f0 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c @@ -532,7 +532,7 @@ lp_build_fetch_rgba_aos(struct gallivm_state *gallivm, util_format_fits_8unorm(format_desc) && type.width == 8 && type.norm == 1 && type.sign == 0 && type.fixed == 0 && type.floating == 0) { - LLVMValueRef packed, res, chans[4], rgba[4]; + LLVMValueRef packed, res = NULL, chans[4], rgba[4]; LLVMTypeRef dst_vec_type, conv_vec_type; struct lp_type fetch_type, conv_type; struct lp_build_context bld_conv; |