diff options
author | Eric Anholt <[email protected]> | 2019-12-16 20:52:22 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2020-02-18 15:40:04 -0800 |
commit | b32bd704c0a22b6eb691f93158acbbdd4c5d370a (patch) | |
tree | 67521dc135961a2b9cecddb345c4566a858fd641 /src/gallium/auxiliary/gallivm | |
parent | ce611935df5e7e6cc731523c7496c33ba6f7ef20 (diff) |
llvmpipe: Silence uninitialized variable warning about "chan"
Both arms of an if define it, but gcc doesn't notice.
Reviewed-by: Roland Scheidegger <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3867>
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_format_soa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c b/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c index c5962a66699..673ba2af001 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_format_soa.c @@ -874,7 +874,7 @@ lp_build_insert_soa_chan(struct lp_build_context *bld, const unsigned width = chan_desc.size; const unsigned start = chan_desc.shift; const unsigned stop = start + width; - LLVMValueRef chan; + LLVMValueRef chan = NULL; switch(chan_desc.type) { case UTIL_FORMAT_TYPE_UNSIGNED: |