From 448c047601bb150d3ffced6e63efd5fb8ca1ca46 Mon Sep 17 00:00:00 2001 From: miny1233 <36765446+miny1233@users.noreply.github.com> Date: Sat, 29 Jun 2024 19:35:11 +0800 Subject: [PATCH] fix: cache.c warning that incompatible-pointer-types check The definition of the third parameter of pthread is void *(*start_routine)(void *) Signed-off-by: miny1233 <36765446+miny1233@users.noreply.github.com> --- src/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache.c b/src/cache.c index 6fdef229..1f55f6fe 100644 --- a/src/cache.c +++ b/src/cache.c @@ -14,7 +14,7 @@ pthread_rwlock_t cacheLock; struct cache *not_http_dst_cache = NULL; static int check_interval; -_Noreturn static void check_cache() { +_Noreturn static void* check_cache(void*) { while (true) { pthread_rwlock_wrlock(&cacheLock);