fixed compiler warning in dhcp.c

This commit is contained in:
goldsimon 2015-02-18 09:02:37 +01:00
parent 1c91bb5a20
commit 9048a7f021

View File

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