Skip to content

Commit 4f91362

Browse files
committed
Mark win32's pthread_exit() as NORETURN
Pointed out by Jeff King. Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 64acc33 commit 4f91362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/win32/pthread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ extern int win32_pthread_join(pthread_t *thread, void **value_ptr);
7878
#define pthread_equal(t1, t2) ((t1).tid == (t2).tid)
7979
extern pthread_t pthread_self(void);
8080

81-
static inline int pthread_exit(void *ret)
81+
static inline int NORETURN pthread_exit(void *ret)
8282
{
8383
ExitThread((DWORD)(intptr_t)ret);
8484
}

0 commit comments

Comments
 (0)