Skip to content

Commit 3f42ec2

Browse files
committed
Concurrency: Fix warnings about unused functions.
1 parent 682e104 commit 3f42ec2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/Concurrency/Task.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,8 @@ static void destroyTask(SWIFT_CONTEXT HeapObject *obj) {
364364
free(task);
365365
}
366366

367+
#if !SWIFT_CONCURRENCY_EMBEDDED
368+
367369
static SerialExecutorRef executorForEnqueuedJob(Job *job) {
368370
#if !SWIFT_CONCURRENCY_ENABLE_DISPATCH
369371
return SerialExecutorRef::generic();
@@ -392,8 +394,6 @@ static void jobInvoke(void *obj, void *unused, uint32_t flags) {
392394
// Magic constant to identify Swift Job vtables to Dispatch.
393395
static const unsigned long dispatchSwiftObjectType = 1;
394396

395-
#if !SWIFT_CONCURRENCY_EMBEDDED
396-
397397
static FullMetadata<DispatchClassMetadata> jobHeapMetadata = {
398398
{
399399
{

0 commit comments

Comments
 (0)