Skip to content

Commit a9618f8

Browse files
committed
Fix swift build warning - 'default will never be executed'
1 parent e0cf515 commit a9618f8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

stdlib/private/StdlibUnittest/StdlibUnittest.swift.gyb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -572,14 +572,13 @@ public func _setTrappingExpectationFailedCallback(callback: @escaping () -> Void
572572
extension ProcessTerminationStatus {
573573
var isSwiftTrap: Bool {
574574
switch self {
575-
case .exit(_):
576-
return false
577575
case .signal(let signal):
578576
return CInt(signal) == SIGILL || CInt(signal) == SIGTRAP
579577
default:
580578
// This default case is needed for standard library builds where
581579
// resilience is enabled.
582-
// FIXME: Need a way to suppress when not.
580+
// FIXME: Add the .exit case when there is a way to suppress when not.
581+
// case .exit(_): return false
583582
return false
584583
}
585584
}

0 commit comments

Comments
 (0)