tcp_out: fix unused parameter when all options are off

This commit is contained in:
goldsimon 2018-02-02 09:01:21 +01:00
parent 31c71fee46
commit 7edbd95b50

View File

@ -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));
}