Skip to content

Commit 1218d7f

Browse files
Merge pull request #41489 from LucianoPAlmeida/minor-nfc-warnings
[NFC] Fixing some stdlib unused warnings
2 parents 4bef7bf + 09bf4cb commit 1218d7f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

stdlib/public/core/CocoaArray.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ internal struct _CocoaArrayWrapper: RandomAccessCollection {
154154
guard buffer.count > 0 else { return (makeIterator(), 0) }
155155
let start = buffer.baseAddress!
156156
let c = Swift.min(self.count, buffer.count)
157-
let end = _copyContents(subRange: 0 ..< c, initializing: start)
157+
_ = _copyContents(subRange: 0 ..< c, initializing: start)
158158
return (IndexingIterator(_elements: self, _position: c), c)
159159
}
160160
}

stdlib/public/core/ContiguousArrayBuffer.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -822,8 +822,8 @@ internal struct _ContiguousArrayBuffer<Element>: _ArrayBufferProtocol {
822822
// class type to use _ContiguousArrayStorage<AnyObject> when we bridge
823823
// to objective-c we need to set the correct Element type so that when
824824
// we bridge back we can use O(1) bridging i.e we can adopt the storage.
825-
_swift_setClassMetadata(_ContiguousArrayStorage<Element>.self,
826-
onObject: _storage)
825+
_ = _swift_setClassMetadata(_ContiguousArrayStorage<Element>.self,
826+
onObject: _storage)
827827
}
828828
return _storage
829829
}

0 commit comments

Comments
 (0)