diff --git a/src/api/api_msg.c b/src/api/api_msg.c index 8a2107c7..6b7eb44e 100644 --- a/src/api/api_msg.c +++ b/src/api/api_msg.c @@ -421,6 +421,7 @@ do_newconn(struct api_msg_msg *msg) TCPIP_APIMSG_ACK(msg); } +#if LWIP_TCP static void do_close_internal(struct netconn *conn) { @@ -458,6 +459,7 @@ do_close_internal(struct netconn *conn) /* If closing didn't succeed, we get called again either from poll_tcp or from sent_tcp */ } +#endif /* LWIP_TCP */ /** * Delete the pcb inside a netconn. diff --git a/src/netif/etharp.c b/src/netif/etharp.c index 35d0b861..399c4060 100644 --- a/src/netif/etharp.c +++ b/src/netif/etharp.c @@ -559,6 +559,8 @@ etharp_find_addr(struct netif *netif, struct ip_addr *ipaddr, { s8_t i; + LWIP_UNUSED_ARG(netif); + #if LWIP_NETIF_HWADDRHINT i = find_entry(ipaddr, ETHARP_FIND_ONLY, NULL); #else /* LWIP_NETIF_HWADDRHINT */