fixed compiler warnings reported by mingw-64

This commit is contained in:
sg
2015-09-17 22:00:16 +02:00
parent 39e32ea7c1
commit 4f9bcc5ecc
5 changed files with 9 additions and 7 deletions

View File

@@ -524,7 +524,7 @@ dns_lookup_local(const char *hostname, ip_addr_t *addr LWIP_DNS_ADDRTYPE_ARG(u8_
entry = entry->next;
}
#else /* DNS_LOCAL_HOSTLIST_IS_DYNAMIC */
int i;
size_t i;
for (i = 0; i < sizeof(local_hostlist_static) / sizeof(struct local_hostlist_entry); i++) {
if ((LWIP_DNS_STRICMP(local_hostlist_static[i].name, hostname) == 0) &&
LWIP_DNS_ADDRTYPE_MATCH_IP(dns_addrtype, local_hostlist_static[i].addr)) {

View File

@@ -772,6 +772,7 @@ netif_loop_output(struct netif *netif, struct pbuf *p)
return ERR_OK;
}
#if LWIP_HAVE_LOOPIF
#if LWIP_IPV4
static err_t
netif_loop_output_ipv4(struct netif *netif, struct pbuf *p, const ip4_addr_t* addr)
@@ -788,7 +789,8 @@ netif_loop_output_ipv6(struct netif *netif, struct pbuf *p, const ip6_addr_t* ad
LWIP_UNUSED_ARG(addr);
return netif_loop_output(netif, p);
}
#endif
#endif /* LWIP_IPV6 */
#endif /* LWIP_HAVE_LOOPIF */
/**