mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-28 09:19:53 +00:00
Prevent compiler warning on unused function arguments.
This commit is contained in:
parent
b68c91c973
commit
9ef5a61b1e
@ -293,6 +293,7 @@ tcp_bind(struct tcp_pcb *pcb, struct ip_addr *ipaddr, u16_t port)
|
|||||||
static err_t
|
static err_t
|
||||||
tcp_accept_null(void *arg, struct tcp_pcb *pcb, err_t err)
|
tcp_accept_null(void *arg, struct tcp_pcb *pcb, err_t err)
|
||||||
{
|
{
|
||||||
|
if (arg || pcb || err);
|
||||||
return ERR_ABRT;
|
return ERR_ABRT;
|
||||||
}
|
}
|
||||||
#endif /* LWIP_CALLBACK_API */
|
#endif /* LWIP_CALLBACK_API */
|
||||||
|
@ -645,6 +645,8 @@ err_t etharp_query(struct netif *netif, struct ip_addr *ipaddr, struct pbuf *q)
|
|||||||
struct pbuf *p;
|
struct pbuf *p;
|
||||||
err_t result;
|
err_t result;
|
||||||
u8_t i;
|
u8_t i;
|
||||||
|
/* prevent warning if ARP_QUEUEING == 0 */
|
||||||
|
if (q);
|
||||||
|
|
||||||
srcaddr = (struct eth_addr *)netif->hwaddr;
|
srcaddr = (struct eth_addr *)netif->hwaddr;
|
||||||
/* bail out if this IP address is pending */
|
/* bail out if this IP address is pending */
|
||||||
|
Loading…
Reference in New Issue
Block a user