[PATCH] pthread.h: Mark pthread_exit() as not returning

Joel Sherrill joel@rtems.org
Tue Mar 22 14:48:00 GMT 2016


---
 newlib/libc/include/pthread.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newlib/libc/include/pthread.h b/newlib/libc/include/pthread.h
index e1de176..33ced0a 100644
--- a/newlib/libc/include/pthread.h
+++ b/newlib/libc/include/pthread.h
@@ -260,7 +260,7 @@ int	_EXFUN(pthread_detach, (pthread_t __pthread));
 
 /* Thread Termination, p1003.1c/Draft 10, p. 150 */
 
-void	_EXFUN(pthread_exit, (void *__value_ptr));
+void	_EXFUN(pthread_exit, (void *__value_ptr)) __dead2;
 
 /* Get Calling Thread's ID, p1003.1c/Draft 10, p. XXX */
 
-- 
1.8.3.1



More information about the Newlib mailing list