From 1ac208da2e4f16f40ec7ccd7a484e655f133d21e Mon Sep 17 00:00:00 2001 From: SivonZn <79399171+SivonZn@users.noreply.github.com> Date: Fri, 6 Sep 2024 16:23:55 +0800 Subject: [PATCH] fix: compilation failed (#135) * fix: ninja compilation error * Update src/cache.c Co-authored-by: Zxilly <31370133+Zxilly@users.noreply.github.com> Signed-off-by: SivonZn <79399171+SivonZn@users.noreply.github.com> --------- Signed-off-by: SivonZn <79399171+SivonZn@users.noreply.github.com> Co-authored-by: Zxilly <31370133+Zxilly@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 1f55f6fe..329d5011 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(void*) { +_Noreturn static void* check_cache(void* arg __attribute__((unused))) { while (true) { pthread_rwlock_wrlock(&cacheLock);