[PATCH 2/2] posix: pthread_exit() is a no-return function

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Mar 22 06:25:33 UTC 2016


---
 cpukit/posix/src/pthreadexit.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cpukit/posix/src/pthreadexit.c b/cpukit/posix/src/pthreadexit.c
index 6b3a09a..6f8a7a7 100644
--- a/cpukit/posix/src/pthreadexit.c
+++ b/cpukit/posix/src/pthreadexit.c
@@ -75,4 +75,5 @@ void pthread_exit(
 )
 {
   _POSIX_Thread_Exit( _Thread_Get_executing(), value_ptr );
+  RTEMS_UNREACHABLE();
 }
-- 
1.8.4.5




More information about the devel mailing list