From b8540dae6c9b383e52cb336c9057a52ae03d6f0b Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 14 Jan 2013 21:17:37 +0000 Subject: [PATCH] * include/pthread.h (pthread_exit): Mark as "noreturn". --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/include/pthread.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 7c8d34aa7..6f957d050 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2013-01-14 Antti Kantee + + * include/pthread.h (pthread_exit): Mark as "noreturn". + 2013-01-14 Christopher Faylor * exceptions.cc (signal_exit): Move captive process termintation... diff --git a/winsup/cygwin/include/pthread.h b/winsup/cygwin/include/pthread.h index 9e21459fd..7ba2a82ee 100644 --- a/winsup/cygwin/include/pthread.h +++ b/winsup/cygwin/include/pthread.h @@ -137,7 +137,7 @@ int pthread_create (pthread_t *, const pthread_attr_t *, void *(*)(void *), void *); int pthread_detach (pthread_t); int pthread_equal (pthread_t, pthread_t); -void pthread_exit (void *); +void pthread_exit (void *) __attribute__ ((noreturn)); int pthread_getcpuclockid (pthread_t, clockid_t *); int pthread_getschedparam (pthread_t, int *, struct sched_param *); void *pthread_getspecific (pthread_key_t);