From aef2accfa388050474de97e8c9984545af669aa0 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Fri, 17 Mar 2017 11:22:30 +0100 Subject: [PATCH] try to satisfy clang's '-Wempty-body' --- src/core/netif.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/core/netif.c b/src/core/netif.c index 51044470..381690bb 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -931,7 +931,9 @@ netif_loop_output(struct netif *netif, struct pbuf *p) netif_poll(). */ /* let last point to the last pbuf in chain r */ - for (last = r; last->next != NULL; last = last->next); + for (last = r; last->next != NULL; last = last->next) { + /* nothing to do here, just get to the last pbuf */ + } SYS_ARCH_PROTECT(lev); if (netif->loop_first != NULL) {