diff options
author | Joe Orton <jorton@apache.org> | 2019-07-03 06:55:51 +0000 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2019-07-03 06:55:51 +0000 |
commit | 21048b63928803f3a20685b64018d93db36dc7bc (patch) | |
tree | 882ac41c165898980c8705ad4a69ebc7b6a86864 /threadproc/os2 | |
parent | 16dec5dc362e0729d0f4853bcb34344998879a6c (diff) | |
download | apr-21048b63928803f3a20685b64018d93db36dc7bc.tar.gz |
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: https://svn.apache.org/repos/asf/apr/apr/trunk@1862446 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'threadproc/os2')
-rw-r--r-- | threadproc/os2/thread.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/threadproc/os2/thread.c b/threadproc/os2/thread.c index 9911034ae..8781f932a 100644 --- a/threadproc/os2/thread.c +++ b/threadproc/os2/thread.c @@ -131,12 +131,11 @@ APR_DECLARE(apr_os_thread_t) apr_os_thread_current() -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); _endthread(); - return -1; /* If we get here something's wrong */ } |