tcp: fix compiling with LWIP_NOASSERT

See bug #64734
This commit is contained in:
Simon Goldschmidt
2023-10-03 17:31:19 +02:00
parent de6b0a35f8
commit ae5a5b99eb
2 changed files with 4 additions and 0 deletions

View File

@@ -1987,6 +1987,9 @@ tcp_rst_common(const struct tcp_pcb *pcb, u32_t seqno, u32_t ackno,
LWIP_ASSERT("tcp_rst: invalid local_ip", local_ip != NULL);
LWIP_ASSERT("tcp_rst: invalid remote_ip", remote_ip != NULL);
/* these two are passed only for checks, disable warnings without asserts */
LWIP_UNUSED_ARG(local_ip);
LWIP_UNUSED_ARG(remote_ip);
optlen = LWIP_TCP_OPT_LENGTH_SEGMENT(0, pcb);