[Dnsmasq-discuss] Potentially unused variables in dnsmasq.c

Dirk Fieldhouse fieldhouse at gmx.net
Sat Jan 30 16:18:14 UTC 2021


The trivial patch below, against 2.84, removes "unused variable"
warnings when building with -DNO_DHCP.

/df

--- a/src/dnsmasq.c
+++ b/src/dnsmasq.c
@@ -55,8 +55,10 @@ int main (int argc, char **argv)
    int need_cap_net_admin = 0;
    int need_cap_net_raw = 0;
    int need_cap_net_bind_service = 0;
+#if defined(HAVE_DHCP)
    char *bound_device = NULL;
    int did_bind = 0;
+#endif
    struct server *serv;
    char *netlink_warn;
  #endif

--
London SW6
UK



More information about the Dnsmasq-discuss mailing list