fix compiling with LWIP_NOASSERT defined

See bug #54157
This commit is contained in:
Simon Goldschmidt
2018-06-20 20:56:20 +02:00
parent 824ebbe0e9
commit 9992b48e90
6 changed files with 12 additions and 1 deletions

View File

@@ -300,6 +300,7 @@ recv_tcp(void *arg, struct tcp_pcb *pcb, struct pbuf *p, err_t err)
LWIP_ASSERT("recv_tcp must have a pcb argument", pcb != NULL);
LWIP_ASSERT("recv_tcp must have an argument", arg != NULL);
LWIP_ASSERT("err != ERR_OK unhandled", err == ERR_OK);
LWIP_UNUSED_ARG(err); /* for LWIP_NOASSERT */
conn = (struct netconn *)arg;
if (conn == NULL) {