summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2024-11-04 13:25:57 -0500
committerGitHub <noreply@github.com>2024-11-04 13:25:57 -0500
commitd27d388bf126e795b3ec28d188206bc6901406cf (patch)
tree9bf31ba40bf747e1d2c03b985c6b5174fa7b80b3 /cpp/src
parentFix IceSSL/configuration test failure (diff)
downloadice-d27d388bf126e795b3ec28d188206bc6901406cf.tar.bz2
ice-d27d388bf126e795b3ec28d188206bc6901406cf.tar.xz
ice-d27d388bf126e795b3ec28d188206bc6901406cf.zip
Swift 6 build fixes (#3051)
Adds support for Swift 6. Specifically it marks exceptions as `@unchecked Sendable` to comply with the error protocol requirements.
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/slice2swift/Gen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/cpp/src/slice2swift/Gen.cpp b/cpp/src/slice2swift/Gen.cpp
index 0a7f28c6169..2529028e866 100644
--- a/cpp/src/slice2swift/Gen.cpp
+++ b/cpp/src/slice2swift/Gen.cpp
@@ -437,6 +437,7 @@ Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
{
out << getUnqualified("Ice.UserException", swiftModule);
}
+ out << ", @unchecked Sendable";
out << sb;
const DataMemberList members = p->dataMembers();