From 6e62b6090bc09d7dbd984842bed3d89fcf8268cf Mon Sep 17 00:00:00 2001 From: Our Air Quality Date: Sun, 18 Jun 2017 14:41:06 +1000 Subject: [PATCH] Silence some unsed variable warnings. --- src/core/tcp_in.c | 2 ++ src/include/lwip/tcp.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/tcp_in.c b/src/core/tcp_in.c index 2305a3cb..3ac20412 100644 --- a/src/core/tcp_in.c +++ b/src/core/tcp_in.c @@ -1058,7 +1058,9 @@ tcp_free_acked_segments(struct tcp_pcb *pcb, struct tcp_seg *seg_list, const cha static void tcp_receive(struct tcp_pcb *pcb) { +#if TCP_QUEUE_OOSEQ || TCP_OOSEQ_MAX_BYTES || TCP_OOSEQ_MAX_PBUFS struct tcp_seg *next; +#endif #if TCP_QUEUE_OOSEQ struct tcp_seg *prev, *cseg; #endif /* TCP_QUEUE_OOSEQ */ diff --git a/src/include/lwip/tcp.h b/src/include/lwip/tcp.h index e5e05693..fac69505 100644 --- a/src/include/lwip/tcp.h +++ b/src/include/lwip/tcp.h @@ -390,7 +390,7 @@ void tcp_backlog_accepted(struct tcp_pcb* pcb); #define tcp_backlog_delayed(pcb) #define tcp_backlog_accepted(pcb) #endif /* TCP_LISTEN_BACKLOG */ -#define tcp_accepted(pcb) /* compatibility define, not needed any more */ +#define tcp_accepted(pcb) { (void)pcb; } /* compatibility define, not needed any more */ void tcp_recved (struct tcp_pcb *pcb, u16_t len); err_t tcp_bind (struct tcp_pcb *pcb, const ip_addr_t *ipaddr,