From 2b9a132772c54d0685a6746d4f2ff317cb71c95e Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Wed, 3 May 2017 09:09:37 +0200 Subject: [PATCH] Fix compile in tcp_route when IPv4 only is used and source-based routing is disabled --- src/core/tcp_out.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/tcp_out.c b/src/core/tcp_out.c index a53a9d8b..8079f784 100644 --- a/src/core/tcp_out.c +++ b/src/core/tcp_out.c @@ -96,6 +96,8 @@ static err_t tcp_output_segment(struct tcp_seg *seg, struct tcp_pcb *pcb, struct static struct netif* tcp_route(const struct tcp_pcb *pcb, const ip_addr_t *src, const ip_addr_t *dst) { + LWIP_UNUSED_ARG(src); /* in case IPv4-only and source-based routing is disabled */ + if ((pcb != NULL) && (pcb->netif_idx != NETIF_NO_INDEX)) { return netif_get_by_index(pcb->netif_idx); } else {