From: RichardBarry Date: Fri, 17 Oct 2008 13:23:28 +0000 (+0000) Subject: Remove some compiler warnings generated by CodeWarrior. X-Git-Tag: V5.1.2~203 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=64af976f98254b4e700354fbd340fcd04c4eedf3;p=freertos Remove some compiler warnings generated by CodeWarrior. git-svn-id: https://svn.code.sf.net/p/freertos/code/trunk@493 1d2547de-c912-0410-9cb9-b8ca96c0e9e2 --- diff --git a/Demo/Common/ethernet/lwIP_130/src/core/tcp_out.c b/Demo/Common/ethernet/lwIP_130/src/core/tcp_out.c index 1cf479bfb..a116d3c2e 100644 --- a/Demo/Common/ethernet/lwIP_130/src/core/tcp_out.c +++ b/Demo/Common/ethernet/lwIP_130/src/core/tcp_out.c @@ -320,7 +320,7 @@ tcp_enqueue(struct tcp_pcb *pcb, void *arg, u16_t len, useg = NULL; } else { - for (useg = pcb->unsent; useg->next != NULL; useg = useg->next); + for (useg = pcb->unsent; useg->next != NULL; useg = useg->next){} } /* { useg is last segment on the unsent queue, NULL if list is empty } */ @@ -433,7 +433,7 @@ tcp_output(struct tcp_pcb *pcb) /* useg should point to last segment on unacked queue */ useg = pcb->unacked; if (useg != NULL) { - for (; useg->next != NULL; useg = useg->next); + for (; useg->next != NULL; useg = useg->next){} } /* If the TF_ACK_NOW flag is set and no data will be sent (either @@ -741,7 +741,7 @@ tcp_rexmit_rto(struct tcp_pcb *pcb) } /* Move all unacked segments to the head of the unsent queue */ - for (seg = pcb->unacked; seg->next != NULL; seg = seg->next); + for (seg = pcb->unacked; seg->next != NULL; seg = seg->next){} /* concatenate unsent queue after unacked queue */ seg->next = pcb->unsent; /* unsent queue is the concatenated queue (of unacked, unsent) */