From dae338c065f659eb9fc1e7ec7cbacb796a59d7a9 Mon Sep 17 00:00:00 2001 From: Marcelo Fabri Date: Mon, 26 Aug 2024 17:48:45 -0700 Subject: [PATCH] Add Sendable conformance to AtomicInt This fixes the following warning that shows up in Xcode 16 beta 6: > Class 'AtomicInt' must restate inherited '@unchecked Sendable' conformance --- Platform/AtomicInt.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platform/AtomicInt.swift b/Platform/AtomicInt.swift index 98479fd2c5..cef1c1f0c0 100644 --- a/Platform/AtomicInt.swift +++ b/Platform/AtomicInt.swift @@ -8,7 +8,7 @@ import Foundation -final class AtomicInt: NSLock { +final class AtomicInt: NSLock, @unchecked Sendable { fileprivate var value: Int32 public init(_ value: Int32 = 0) { self.value = value