Skip to content

Commit

Permalink
Mark win32's pthread_exit() as NORETURN
Browse files Browse the repository at this point in the history
Pointed out by Jeff King.

Signed-off-by: Johannes Schindelin <[email protected]>
  • Loading branch information
dscho committed Mar 14, 2016
1 parent 1c73171 commit cf0165c
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 int NORETURN pthread_exit(void *ret)
{
ExitThread((DWORD)(intptr_t)ret);
}
Expand Down

0 comments on commit cf0165c

Please sign in to comment.