* pthread.cc (pthread_exit): Add kludge to accommodate noreturn attribute.

This commit is contained in:
Christopher Faylor 2013-01-16 19:20:59 +00:00
parent 0a7746bde6
commit b01065f174
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2013-01-16 Christopher Faylor <me.cygwin2013@cgf.cx>
* pthread.cc (pthread_exit): Add kludge to accommodate noreturn attribute.
2013-01-14 Antti Kantee <pooka@iki.fi>
* include/pthread.h (pthread_exit): Mark as "noreturn".

View File

@ -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