From c9ebb895a157b2bf2150eb528eb32729accdb840 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Mon, 18 Jun 2007 20:08:31 +0000 Subject: [PATCH] Removed warning "empty body in an if statement" in tcp_receive() for LWIP_DEBUG=0 --- src/core/tcp_in.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/tcp_in.c b/src/core/tcp_in.c index 110d1484..4f68a92a 100644 --- a/src/core/tcp_in.c +++ b/src/core/tcp_in.c @@ -939,13 +939,15 @@ tcp_receive(struct tcp_pcb *pcb) p->len = 0; p = p->next; } - if(pbuf_header(p, -off)) + if(pbuf_header(p, -off)) { /* Do we need to cope with this failing? Assert for now */ LWIP_ASSERT("pbuf_header failed", 0); + } } else { - if(pbuf_header(inseg.p, -off)) + if(pbuf_header(inseg.p, -off)) { /* Do we need to cope with this failing? Assert for now */ LWIP_ASSERT("pbuf_header failed", 0); + } } /* KJM following line changed to use p->payload rather than inseg->p->payload to fix bug #9076 */