Skip to content

Commit f053c8a

Browse files
committed
Fix Swift 6.0.3 build
There are a couple instances of trailing commas in the project that prevents it from compiling with Swift 6.0.3. This resolves the issues.
1 parent abd34ba commit f053c8a

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ playground.xcworkspace
4646
#
4747
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
4848
# hence it is not needed unless you have added a package configuration file to your project
49-
# .swiftpm
5049

50+
.swiftpm/
5151
.build/
5252

5353
# CocoaPods

Sources/Subprocess/Configuration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ internal struct CreatedPipe {
872872

873873
internal init(
874874
readFileDescriptor: TrackedFileDescriptor?,
875-
writeFileDescriptor: TrackedFileDescriptor?,
875+
writeFileDescriptor: TrackedFileDescriptor?
876876
) {
877877
self.readFileDescriptor = readFileDescriptor
878878
self.writeFileDescriptor = writeFileDescriptor

Sources/_SubprocessCShims/process_shims.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ static int _subprocess_spawn_prefork(
236236
*pid = childPid;
237237
// Read from the pipe until pipe is closed
238238
// either due to exec succeeds or error is written
239-
while (true) {
239+
while (TRUE) {
240240
int childError = 0;
241241
ssize_t read_rc = read(pipefd[0], &childError, sizeof(childError));
242242
if (read_rc == 0) {

Tests/SubprocessTests/SubprocessTests+Unix.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ extension SubprocessUnixTests {
938938
group.addTask {
939939
return try await Subprocess.run(
940940
.path("/bin/sh"),
941-
arguments: ["-c", "trap 'echo no' TERM; while true; do sleep 1; done"],
941+
arguments: ["-c", "trap 'echo no' TERM; while true; do sleep 1; done"]
942942
).terminationStatus
943943
}
944944
group.addTask {

0 commit comments

Comments
 (0)