Skip to content

Commit

Permalink
Merge branch 'js/pthread-exit-emu-windows'
Browse files Browse the repository at this point in the history
* js/pthread-exit-emu-windows:
  Mark win32's pthread_exit() as NORETURN
  • Loading branch information
Junio C Hamano committed Mar 4, 2016
2 parents bbe90e7 + 296d673 commit 3978cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compat/win32/pthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 void NORETURN pthread_exit(void *ret)
{
ExitThread((DWORD)(intptr_t)ret);
}
Expand Down

0 comments on commit 3978cd0

Please sign in to comment.