Skip to content

Commit c36cb57

Browse files
authored
[stdlib] Fix warnings in non-ObjC platforms. (#11200)
1 parent 28b5bbf commit c36cb57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/core/HashedCollections.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5507,9 +5507,9 @@ extension ${Self}.Index {
55075507
#if _runtime(_ObjC)
55085508
case (._cocoa(let lhsCocoa), ._cocoa(let rhsCocoa)):
55095509
return lhsCocoa == rhsCocoa
5510-
#endif
55115510
default:
55125511
_preconditionFailure("comparing indexes from different sets")
5512+
#endif
55135513
}
55145514
}
55155515

@@ -5527,9 +5527,9 @@ extension ${Self}.Index {
55275527
#if _runtime(_ObjC)
55285528
case (._cocoa(let lhsCocoa), ._cocoa(let rhsCocoa)):
55295529
return lhsCocoa < rhsCocoa
5530-
#endif
55315530
default:
55325531
_preconditionFailure("comparing indexes from different sets")
5532+
#endif
55335533
}
55345534
}
55355535
}

0 commit comments

Comments
 (0)