File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff 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"
138140extern " C" SWIFT_CC(swift)
139141SerialExecutorRef _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"
146151extern " C" SWIFT_CC(swift)
147152TaskExecutorRef _task_executor_getTaskExecutorRef (
148153 HeapObject *executor, const Metadata *selfType,
149154 const SerialExecutorWitnessTable *wtable);
155+ #pragma clang diagnostic pop
150156
151157SWIFT_CC (swift)
152158static bool swift_task_isOnExecutorImpl(HeapObject *executor,
You can’t perform that action at this time.
0 commit comments