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>
This commit is contained in:
SivonZn 2024-09-06 16:23:55 +08:00 committed by GitHub
parent 90c9d9f5ed
commit 1ac208da2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);