From: W.C.A. Wijngaards Date: Wed, 3 Jul 2024 14:42:52 +0000 (+0200) Subject: - Fix compile warnings in fptr_wlist.c. X-Git-Tag: release-1.21.0rc1~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b319c97ee2536569d6bc0f0f01f81f31163bc49;p=thirdparty%2Funbound.git - Fix compile warnings in fptr_wlist.c. --- diff --git a/doc/Changelog b/doc/Changelog index 2bc8a9dd1..325285337 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -8,6 +8,7 @@ - Add unit test skip files and bison and flex output to gitignore. - Fix to use modstack_init in zonemd unit test. - Fix to remove unneeded linebreak in fptr_wlist.c. + - Fix compile warnings in fptr_wlist.c. 2 July 2024: Wouter - Fix to remove unused include from the readzone test program. diff --git a/util/fptr_wlist.c b/util/fptr_wlist.c index 5e2789865..705dc1bbe 100644 --- a/util/fptr_wlist.c +++ b/util/fptr_wlist.c @@ -453,6 +453,8 @@ fptr_whitelist_mod_startup(int (*fptr)(struct module_env* env, int id)) { #ifdef USE_IPSET if(fptr == &ipset_startup) return 1; +#else + (void)fptr; #endif return 0; } @@ -462,6 +464,8 @@ fptr_whitelist_mod_destartup(void (*fptr)(struct module_env* env, int id)) { #ifdef USE_IPSET if(fptr == &ipset_destartup) return 1; +#else + (void)fptr; #endif return 0; }