From f80457c70b19b92f506f580f6136eba5f34e1f18 Mon Sep 17 00:00:00 2001 From: Yann Ylavic Date: Thu, 23 Jun 2022 00:19:25 +0000 Subject: 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 --- test/testlock.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') 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) -- cgit v1.2.1