Skip to content

Commit 553c05c

Browse files
committed
dispatch: remove some unused functions
This preprocesses away some function definitions to avoid a warning on Windows. This cleans all but one warning on Windows.
1 parent 7b7b063 commit 553c05c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/queue.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7818,6 +7818,7 @@ _dispatch_sigsuspend(void)
78187818
}
78197819
#endif // !defined(_WIN32)
78207820

7821+
#if defined(__linux__)
78217822
DISPATCH_NORETURN
78227823
static void
78237824
_dispatch_sig_thread(void *ctxt DISPATCH_UNUSED)
@@ -7831,6 +7832,7 @@ _dispatch_sig_thread(void *ctxt DISPATCH_UNUSED)
78317832
_dispatch_sigsuspend();
78327833
#endif
78337834
}
7835+
#endif
78347836

78357837
void
78367838
dispatch_main(void)
@@ -7969,7 +7971,7 @@ _dispatch_context_cleanup(void *ctxt)
79697971
#pragma mark -
79707972
#pragma mark dispatch_init
79717973

7972-
#if !DISPATCH_USE_COOPERATIVE_WORKQUEUE
7974+
#if !DISPATCH_USE_INTERNAL_WORKQUEUE && !DISPATCH_USE_COOPERATIVE_WORKQUEUE
79737975
static void
79747976
_dispatch_cooperative_root_queue_init_fallback(dispatch_queue_global_t dq)
79757977
{

0 commit comments

Comments
 (0)