mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-02 12:52:10 +00:00
fixed compiler warning in dhcp.c
This commit is contained in:
parent
1c91bb5a20
commit
9048a7f021
@ -530,11 +530,12 @@ static void
|
|||||||
dhcp_handle_ack(struct netif *netif)
|
dhcp_handle_ack(struct netif *netif)
|
||||||
{
|
{
|
||||||
struct dhcp *dhcp = netif->dhcp;
|
struct dhcp *dhcp = netif->dhcp;
|
||||||
|
#if LWIP_DNS || LWIP_DHCP_GET_NTP_SRV
|
||||||
u8_t n;
|
u8_t n;
|
||||||
|
#endif /* LWIP_DNS || LWIP_DHCP_GET_NTP_SRV */
|
||||||
#if LWIP_DHCP_GET_NTP_SRV
|
#if LWIP_DHCP_GET_NTP_SRV
|
||||||
ip_addr_t ntp_server_addrs[LWIP_DHCP_MAX_NTP_SERVERS];
|
ip_addr_t ntp_server_addrs[LWIP_DHCP_MAX_NTP_SERVERS];
|
||||||
#endif
|
#endif
|
||||||
LWIP_UNUSED_ARG(n);
|
|
||||||
|
|
||||||
/* clear options we might not get from the ACK */
|
/* clear options we might not get from the ACK */
|
||||||
ip_addr_set_zero(&dhcp->offered_sn_mask);
|
ip_addr_set_zero(&dhcp->offered_sn_mask);
|
||||||
|
Loading…
Reference in New Issue
Block a user