mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 08:50:09 +01:00
nir: Silence GCC maybe-uninitialized warnings.
nir/nir_control_flow.c: In function ‘split_block_cursor.isra.11’:
nir/nir_control_flow.c:460:15: warning: ‘after’ may be used uninitialized in this function [-Wmaybe-uninitialized]
*_after = after;
^
nir/nir_control_flow.c:458:16: warning: ‘before’ may be used uninitialized in this function [-Wmaybe-uninitialized]
*_before = before;
^
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
This commit is contained in:
parent
5480bbd90e
commit
3a0fef0005
1 changed files with 3 additions and 0 deletions
|
|
@ -452,6 +452,9 @@ split_block_cursor(nir_cursor cursor,
|
|||
before = split_block_before_instr(nir_instr_next(cursor.instr));
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
unreachable("not reached");
|
||||
}
|
||||
|
||||
if (_before)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue