diff options
author | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2022-06-23 00:19:25 +0000 |
---|---|---|
committer | ylavic <ylavic@13f79535-47bb-0310-9956-ffa450edef68> | 2022-06-23 00:19:25 +0000 |
commit | f1694742f64d15272e5bef37109dad16b8b2a992 (patch) | |
tree | acf58c0bb1be8e822c1fc0a245c650ad49c19777 | |
parent | 83bd4d3bce007e47e40a3808bc27e5054379ec89 (diff) | |
download | libapr-f1694742f64d15272e5bef37109dad16b8b2a992.tar.gz |
test/testlock: Fix -Werror=return-type
* test/testlock.c(thread_mutex_function,
thread_mutex_sleep_function):
Thread (APR_THREAD_FUNC) functions should return a pointer (NULL).
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902181 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | test/testlock.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/testlock.c b/test/testlock.c index 8ff1d9d41..c5479d678 100644 --- a/test/testlock.c +++ b/test/testlock.c @@ -126,6 +126,7 @@ static void *APR_THREAD_FUNC thread_mutex_function(apr_thread_t *thd, void *data } apr_thread_exit(thd, APR_SUCCESS); + return NULL; } /* Sleepy-loop until f_ value matches val: */ @@ -154,6 +155,7 @@ static void *APR_THREAD_FUNC thread_mutex_sleep_function(apr_thread_t *thd, void rv = apr_thread_mutex_unlock(timeout_mutex); apr_thread_exit(thd, APR_SUCCESS); + return NULL; } static void *APR_THREAD_FUNC thread_cond_producer(apr_thread_t *thd, void *data) |