mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-10 17:43:39 +08:00
fixed compiler warning in dhcp.c
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user