From c9a4240ec43509969d974465e74230e5fc69e1b0 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sat, 24 May 2025 21:33:16 +0200 Subject: [PATCH] Unbreak compilation on non-Linux systems (FreeBSD) and put the void cast of netlink_warn under the same preprocessor condition as its definition, #ifdef HAVE_LINUX_NETWORK. --- src/dnsmasq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dnsmasq.c b/src/dnsmasq.c index 4c70236..62a9e59 100644 --- a/src/dnsmasq.c +++ b/src/dnsmasq.c @@ -81,7 +81,9 @@ int main (int argc, char **argv) int tftp_prefix_missing = 0; #endif +#ifdef HAVE_LINUX_NETWORK (void)netlink_warn; +#endif #if defined(HAVE_IDN) || defined(HAVE_LIBIDN2) || defined(LOCALEDIR) setlocale(LC_ALL, "");