Skip to content

Commit d49bcfa

Browse files
committed
dispatch: silence a warning on Windows (NFC)
clang objects to the return from function marked as noreturn. Add in a marker to indicate that the return path is dead. This should be equivalent to the existing code but silences the compiler warning.
1 parent 3dda349 commit d49bcfa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/queue.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7813,6 +7813,7 @@ _dispatch_sig_thread(void *ctxt DISPATCH_UNUSED)
78137813
_dispatch_clear_stack(0);
78147814
#if defined(_WIN32)
78157815
Sleep(INFINITE);
7816+
__assume(0);
78167817
#else
78177818
_dispatch_sigsuspend();
78187819
#endif

0 commit comments

Comments
 (0)