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

Joel Sherrill joel at rtems.org
Tue Mar 22 14:30:31 UTC 2016


Looks good. I have a patch to newlib to add the annotation in pthread.h. I
will
submit it for review today.

On Tue, Mar 22, 2016 at 1:25 AM, Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> ---
>  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
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20160322/41d148fe/attachment.html>


More information about the devel mailing list