From e54928a628897950677f6608b3fbfa01ab416bd8 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Tue, 2 Jul 2024 09:33:22 +0200 Subject: [PATCH] - Fix unused variable warning in do_cache_remove. --- daemon/remote.c | 2 ++ doc/Changelog | 1 + 2 files changed, 3 insertions(+) diff --git a/daemon/remote.c b/daemon/remote.c index 341e56054..a5db4330c 100644 --- a/daemon/remote.c +++ b/daemon/remote.c @@ -1682,6 +1682,8 @@ do_cache_remove(struct worker* worker, uint8_t* nm, size_t nmlen, #ifdef USE_CACHEDB if(remcachedb && worker->env.cachedb_enabled) cachedb_msg_remove_qinfo(&worker->env, &k); +#else + (void)remcachedb; #endif } diff --git a/doc/Changelog b/doc/Changelog index b27cc34e0..92a5d8913 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,5 +1,6 @@ 2 July 2024: Wouter - Fix to remove unused include from the readzone test program. + - Fix unused variable warning in do_cache_remove. 17 June 2024: Wouter - Fix ip-ratelimit-cookie setting, it was not applied. -- 2.47.2