* pthread.cc (pthread_exit): Add kludge to accommodate noreturn attribute.
This commit is contained in:
		| @@ -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> | 2013-01-14  Antti Kantee  <pooka@iki.fi> | ||||||
|  |  | ||||||
| 	* include/pthread.h (pthread_exit): Mark as "noreturn". | 	* include/pthread.h (pthread_exit): Mark as "noreturn". | ||||||
|   | |||||||
| @@ -39,7 +39,8 @@ pthread_atfork (void (*prepare)(void), void (*parent)(void), void (*child)(void) | |||||||
| void | void | ||||||
| pthread_exit (void *value_ptr) | 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 | int | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user