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.
This commit is contained in:
Matthias Andree
2025-05-24 21:33:16 +02:00
committed by Simon Kelley
parent e7b87dee85
commit c9a4240ec4

View File

@@ -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, "");