From 1fa0d66f1501f85b51a83eacfc259d2160072f45 Mon Sep 17 00:00:00 2001 From: softins Date: Tue, 27 Jul 2004 16:08:26 +0000 Subject: [PATCH] Stop compiler complaining of empty if statement when LWIP_DEBUGF() empty. --- src/core/tcp.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/tcp.c b/src/core/tcp.c index ed8758f5..d53ce135 100644 --- a/src/core/tcp.c +++ b/src/core/tcp.c @@ -559,7 +559,9 @@ tcp_slowtmr(void) /* Steps through all of the active PCBs. */ prev = NULL; pcb = tcp_active_pcbs; - if (pcb == NULL) LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: no active pcbs\n")); + if (pcb == NULL) { + LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: no active pcbs\n")); + } while (pcb != NULL) { LWIP_DEBUGF(TCP_DEBUG, ("tcp_slowtmr: processing active pcb\n")); LWIP_ASSERT("tcp_slowtmr: active pcb->state != CLOSED\n", pcb->state != CLOSED);