Skip to content

Commit 8343e7a

Browse files
committed
NFC: Suppress -Wreturn-type-c-linkage warnings in GlobalExecutor.cpp.
1 parent f18b196 commit 8343e7a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

stdlib/public/Concurrency/GlobalExecutor.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,18 +135,24 @@ void swift::swift_task_enqueueGlobalWithDeadline(
135135
// Implemented in Swift because we need to obtain the user-defined flags on the executor ref.
136136
//
137137
// We could inline this with effort, though.
138+
#pragma clang diagnostic push
139+
#pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
138140
extern "C" SWIFT_CC(swift)
139141
SerialExecutorRef _task_serialExecutor_getExecutorRef(
140142
HeapObject *executor, const Metadata *selfType,
141143
const SerialExecutorWitnessTable *wtable);
144+
#pragma clang diagnostic pop
142145

143146
// Implemented in Swift because we need to obtain the user-defined flags on the executor ref.
144147
//
145148
// We could inline this with effort, though.
149+
#pragma clang diagnostic push
150+
#pragma clang diagnostic ignored "-Wreturn-type-c-linkage"
146151
extern "C" SWIFT_CC(swift)
147152
TaskExecutorRef _task_executor_getTaskExecutorRef(
148153
HeapObject *executor, const Metadata *selfType,
149154
const SerialExecutorWitnessTable *wtable);
155+
#pragma clang diagnostic pop
150156

151157
SWIFT_CC(swift)
152158
static bool swift_task_isOnExecutorImpl(HeapObject *executor,

0 commit comments

Comments
 (0)