mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 03:40:10 +01:00
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);
^
This commit is contained in:
parent
3b1934d9b6
commit
9f5dbbe030
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue