From: W.C.A. Wijngaards Date: Tue, 2 Jul 2024 07:33:22 +0000 (+0200) Subject: - Fix unused variable warning in do_cache_remove. X-Git-Tag: release-1.21.0rc1~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e54928a628897950677f6608b3fbfa01ab416bd8;p=thirdparty%2Funbound.git - Fix unused variable warning in do_cache_remove. --- 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.