From d021972785fa2b4e61aae2a9d698a2cc3b25456a Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Tue, 11 Jul 2017 09:59:11 +0200 Subject: [PATCH] Fix "no previous prototype" warning when TCP_QUEUE_OOSEQ is disabled --- src/core/tcp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/tcp.c b/src/core/tcp.c index 80cf4c48..c5c6d297 100644 --- a/src/core/tcp.c +++ b/src/core/tcp.c @@ -2105,6 +2105,7 @@ tcp_tcp_get_tcp_addrinfo(struct tcp_pcb *pcb, int local, ip_addr_t *addr, u16_t return ERR_VAL; } +#if TCP_QUEUE_OOSEQ /* Free all ooseq pbufs (and possibly reset SACK state) */ void tcp_free_ooseq(struct tcp_pcb *pcb) @@ -2117,6 +2118,7 @@ tcp_free_ooseq(struct tcp_pcb *pcb) #endif /* LWIP_TCP_SACK_OUT */ } } +#endif /* TCP_QUEUE_OOSEQ */ #if TCP_DEBUG || TCP_INPUT_DEBUG || TCP_OUTPUT_DEBUG /**