Skip to content

Commit b0146b1

Browse files
authored
Conditionalize 'ExplicitSendable' warning group to 6.3 compilers (#1473)
This is a follow-up to the new warning group adopted in #1445, to limit its usage to 6.3 or later compilers since that diagnostic was added in 6.3. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent df8a6d2 commit b0146b1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Package.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,9 @@ extension Array where Element == PackageDescription.SwiftSetting {
369369
static var packageSettings: Self {
370370
var result = availabilityMacroSettings
371371

372+
#if compiler(>=6.3)
372373
result.append(.treatWarning("ExplicitSendable", as: .warning))
374+
#endif
373375

374376
if buildingForEmbedded {
375377
result.append(.enableExperimentalFeature("Embedded"))

0 commit comments

Comments
 (0)