]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix unused variable warning in do_cache_remove.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 2 Jul 2024 07:33:22 +0000 (09:33 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 2 Jul 2024 07:33:22 +0000 (09:33 +0200)
daemon/remote.c
doc/Changelog

index 341e56054c18f73e9248b26ddcc516525f0456da..a5db4330c5a71275188e2f463611cba13531dce5 100644 (file)
@@ -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
 }
 
index b27cc34e0fcba80ae41793619128c86781f02c2e..92a5d891392180704ea54acf221485beed6cf913 100644 (file)
@@ -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.