From 9048a7f021a0c3ca9f16da5603b50396d1ca5be3 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 18 Feb 2015 09:02:37 +0100 Subject: [PATCH] fixed compiler warning in dhcp.c --- src/core/dhcp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/dhcp.c b/src/core/dhcp.c index ec9fd650..aafe6fe3 100644 --- a/src/core/dhcp.c +++ b/src/core/dhcp.c @@ -530,11 +530,12 @@ static void dhcp_handle_ack(struct netif *netif) { struct dhcp *dhcp = netif->dhcp; +#if LWIP_DNS || LWIP_DHCP_GET_NTP_SRV u8_t n; +#endif /* LWIP_DNS || LWIP_DHCP_GET_NTP_SRV */ #if LWIP_DHCP_GET_NTP_SRV ip_addr_t ntp_server_addrs[LWIP_DHCP_MAX_NTP_SERVERS]; #endif - LWIP_UNUSED_ARG(n); /* clear options we might not get from the ACK */ ip_addr_set_zero(&dhcp->offered_sn_mask);