From 86e129af663448c02c90792156b40fb692be934a Mon Sep 17 00:00:00 2001 From: Rintaro Ishizaki Date: Wed, 26 Jul 2017 22:03:16 +0900 Subject: [PATCH] [stdlib] Fix warnings in non-ObjC platforms. --- stdlib/public/core/HashedCollections.swift.gyb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib/public/core/HashedCollections.swift.gyb b/stdlib/public/core/HashedCollections.swift.gyb index d75e576882358..564d4f6cc5ce3 100644 --- a/stdlib/public/core/HashedCollections.swift.gyb +++ b/stdlib/public/core/HashedCollections.swift.gyb @@ -5507,9 +5507,9 @@ extension ${Self}.Index { #if _runtime(_ObjC) case (._cocoa(let lhsCocoa), ._cocoa(let rhsCocoa)): return lhsCocoa == rhsCocoa - #endif default: _preconditionFailure("comparing indexes from different sets") + #endif } } @@ -5527,9 +5527,9 @@ extension ${Self}.Index { #if _runtime(_ObjC) case (._cocoa(let lhsCocoa), ._cocoa(let rhsCocoa)): return lhsCocoa < rhsCocoa - #endif default: _preconditionFailure("comparing indexes from different sets") + #endif } } }