From 3f3f3a88f222e096f34e750a99337e1c490b7e34 Mon Sep 17 00:00:00 2001 From: jorton Date: Wed, 3 Jul 2019 06:55:51 +0000 Subject: API/ABI change, drop return value of apr_thread_exit() which has no useful (nor documented) semantic: * include/apr_thread_proc.h (apr_thread_exit): Make void function; mark with gcc noreturn attribute. * threadproc/*/thread.c (apr_thread_exit): Update accordingly. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1862446 13f79535-47bb-0310-9956-ffa450edef68 --- threadproc/unix/thread.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'threadproc/unix/thread.c') diff --git a/threadproc/unix/thread.c b/threadproc/unix/thread.c index dcef500e9..f76e6ce44 100644 --- a/threadproc/unix/thread.c +++ b/threadproc/unix/thread.c @@ -204,13 +204,12 @@ APR_DECLARE(int) apr_os_thread_equal(apr_os_thread_t tid1, return pthread_equal(tid1, tid2); } -APR_DECLARE(apr_status_t) apr_thread_exit(apr_thread_t *thd, - apr_status_t retval) +APR_DECLARE(void) apr_thread_exit(apr_thread_t *thd, + apr_status_t retval) { thd->exitval = retval; apr_pool_destroy(thd->pool); pthread_exit(NULL); - return APR_SUCCESS; } APR_DECLARE(apr_status_t) apr_thread_join(apr_status_t *retval, -- cgit v1.2.1