From 6b319c97ee2536569d6bc0f0f01f81f31163bc49 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Wed, 3 Jul 2024 16:42:52 +0200 Subject: [PATCH] - Fix compile warnings in fptr_wlist.c. --- doc/Changelog | 1 + util/fptr_wlist.c | 4 ++++ 2 files changed, 5 insertions(+) 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; }