From 4f91362c81ce3f34ec5e167c854b487052879aaa Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 1 Mar 2016 14:48:24 +0100 Subject: [PATCH] Mark win32's pthread_exit() as NORETURN Pointed out by Jeff King. Signed-off-by: Johannes Schindelin --- compat/win32/pthread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compat/win32/pthread.h b/compat/win32/pthread.h index 20b35a283c..148db6022a 100644 --- a/compat/win32/pthread.h +++ b/compat/win32/pthread.h @@ -78,7 +78,7 @@ extern int win32_pthread_join(pthread_t *thread, void **value_ptr); #define pthread_equal(t1, t2) ((t1).tid == (t2).tid) extern pthread_t pthread_self(void); -static inline int pthread_exit(void *ret) +static inline int NORETURN pthread_exit(void *ret) { ExitThread((DWORD)(intptr_t)ret); }