Silence some unsed variable warnings.

This commit is contained in:
Our Air Quality 2017-06-18 14:41:06 +10:00 committed by Dirk Ziegelmeier
parent 02aaf12f48
commit 6e62b6090b
2 changed files with 3 additions and 1 deletions

View File

@ -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 */

View File

@ -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,