projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b1934d
)
gallivm: fix a maybe-uninitialized warning
author
Marek Olšák
<marek.olsak@amd.com>
Thu, 30 Mar 2017 15:11:41 +0000
(17:11 +0200)
committer
Marek Olšák
<marek.olsak@amd.com>
Thu, 30 Mar 2017 15:14:47 +0000
(17:14 +0200)
/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);
^
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
b/src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c
index 161a03f35242ad2570aff11ce10c1fe919db86bf..cb4660e424d709fd6c8ecead01c73c48b79e363b 100644
(file)
--- 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;