summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2015-11-02 01:23:59 -0800
committerVinson Lee <[email protected]>2015-11-13 16:19:11 -0800
commit3a0fef0005eca63c6f8067d55145b8e884221cfa (patch)
treef97afd5ebd59dcdd27f28f535e152280a2686b33
parent5480bbd90ea288877b6e56d4860feb8f97bcba80 (diff)
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 <[email protected]> Reviewed-by: Connor Abbott <[email protected]>
-rw-r--r--src/glsl/nir/nir_control_flow.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_control_flow.c b/src/glsl/nir/nir_control_flow.c
index 7f51c4faf49..96395a41615 100644
--- a/src/glsl/nir/nir_control_flow.c
+++ b/src/glsl/nir/nir_control_flow.c
@@ -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)