[rtems commit] posix: pthread_exit() is a no-return function

Sebastian Huber sebh at rtems.org
Wed Mar 23 06:54:26 UTC 2016


Module:    rtems
Branch:    master
Commit:    2518516f403f0d61dbf1156ee1edb670fc204fcd
Changeset: http://git.rtems.org/rtems/commit/?id=2518516f403f0d61dbf1156ee1edb670fc204fcd

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Mar 22 07:24:56 2016 +0100

posix: pthread_exit() is a no-return function

---

 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();
 }



More information about the vc mailing list