From f5438b1b4386ad98dd54bf5392e723d03871b487 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' (cherry picked from commit aef2accfa388050474de97e8c9984545af669aa0) --- 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 428b1484..64446546 100644 --- a/src/core/netif.c +++ b/src/core/netif.c @@ -849,7 +849,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) {