summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/pthread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/pthread.cc')
-rw-r--r--winsup/cygwin/pthread.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/pthread.cc b/winsup/cygwin/pthread.cc
index 3dddf48b1..45ef80c16 100644
--- a/winsup/cygwin/pthread.cc
+++ b/winsup/cygwin/pthread.cc
@@ -39,7 +39,8 @@ pthread_atfork (void (*prepare)(void), void (*parent)(void), void (*child)(void)
void
pthread_exit (void *value_ptr)
{
- return pthread::self ()->exit (value_ptr);
+ pthread::self ()->exit (value_ptr);
+ __builtin_unreachable (); /* FIXME: don't know why this is necessary */
}
int