Skip to content

Commit 09bf4cb

Browse files
[NFC] Fixing some stdlib unused warnings
1 parent b004396 commit 09bf4cb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
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
}

stdlib/public/core/Int128.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ private func _wideMaskedShiftLeft<F: FixedWidthInteger>(
590590
var high = lhs.high &<< F(rhs)
591591
let rollover = F.Magnitude(F.bitWidth) &- rhs
592592
high |= F(truncatingIfNeeded: lhs.low &>> rollover)
593-
var low = lhs.low &<< rhs
593+
let low = lhs.low &<< rhs
594594
return (high, low)
595595
}
596596

0 commit comments

Comments
 (0)