mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
llvmpipe: Silence uninitialized variable warning about "chan"
Both arms of an if define it, but gcc doesn't notice. Reviewed-by: Roland Scheidegger <sroland@vmware.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3867>
This commit is contained in:
parent
ce611935df
commit
b32bd704c0
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue