diff options
author | Marek Olšák <[email protected]> | 2017-03-30 17:11:41 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-03-30 17:14:47 +0200 |
commit | 9f5dbbe030a069b9c362a48fdcd23d4d6221894f (patch) | |
tree | b5324196b078a5dc17a87bed0fde7ef9d9e7c294 /src/gallium/auxiliary | |
parent | 3b1934d9b6eee8c5533532c128843d0a7d2ca1a3 (diff) |
gallivm: fix a maybe-uninitialized warning
/home/marek/dev/mesa-main/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c:3598:
warning: 'level' may be used uninitialized in this function [-Wmaybe-uninitialized]
out1 = lp_build_cmp(&leveli_bld, PIPE_FUNC_GREATER, level, last_level);
^
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c index 161a03f3524..cb4660e424d 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c @@ -3462,7 +3462,7 @@ lp_build_size_query_soa(struct gallivm_state *gallivm, struct lp_sampler_dynamic_state *dynamic_state, const struct lp_sampler_size_query_params *params) { - LLVMValueRef lod, level, size; + LLVMValueRef lod, level = 0, size; LLVMValueRef first_level = NULL; int dims, i; boolean has_array; |