Skip to content

Commit 2253697

Browse files
authored
Merge pull request #82600 from valeriyvan/WarningObjectiveCBridging
Fix unused var warning in benchmark
2 parents f2d9de9 + b0f46de commit 2253697

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/single-source/ObjectiveCBridging.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ public func run_BridgedNSDictionaryEnumerate(_ n: Int) {
883883
public func run_BridgedNSArrayBufferAccess(_ n: Int) {
884884
#if _runtime(_ObjC)
885885
for _ in 0 ..< n {
886-
for i in 0..<1000 {
886+
for _ in 0..<1000 {
887887
let tmp = nsArray as! [NSObject]
888888
blackHole(tmp)
889889
blackHole(tmp.withContiguousStorageIfAvailable {
@@ -900,7 +900,7 @@ public func run_BridgedNSArrayRepeatedBufferAccess(_ n: Int) {
900900
for _ in 0 ..< n {
901901
let tmp = nsArray as! [NSObject]
902902
blackHole(tmp)
903-
for i in 0..<1000 {
903+
for _ in 0..<1000 {
904904
blackHole(tmp.withContiguousStorageIfAvailable {
905905
$0[0]
906906
})

0 commit comments

Comments
 (0)