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 authored and Simon Kelley committed 2025-05-25 21:15:41 +01:00
1 parent e7b87dee85
commit c9a4240ec4
1 file changed
+2
+2
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, "");