From 7edbd95b50ba3d140f29c8ad4ae7e1f300149ed8 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Fri, 2 Feb 2018 09:01:21 +0100 Subject: [PATCH] tcp_out: fix unused parameter when all options are off --- src/core/tcp_out.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/tcp_out.c b/src/core/tcp_out.c index 0c27216d..9a5fc571 100644 --- a/src/core/tcp_out.c +++ b/src/core/tcp_out.c @@ -1832,6 +1832,7 @@ tcp_output_fill_options(const struct tcp_pcb *pcb, struct pbuf *p, u8_t optflags opts = LWIP_HOOK_TCP_OUT_ADD_TCPOPTS(p, tcphdr, pcb, opts); #endif + LWIP_UNUSED_ARG(pcb); LWIP_ASSERT("options not filled", (u8_t *)opts == ((u8_t *)(tcphdr + 1)) + LWIP_TCP_OPT_LENGTH_SEGMENT(optflags, pcb)); }