aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2013-10-14 23:42:06 +0200
committerHenrik Nord <[email protected]>2013-12-02 15:20:50 +0100
commit04e0926b73b23eea6894314a8a99bb429c689a59 (patch)
tree8880eda636aa8bc5b961ce582514392287c85a2b
parent2b8016ebb9d487be590c01390928d1cc83c8225c (diff)
downloadotp-04e0926b73b23eea6894314a8a99bb429c689a59.tar.gz
otp-04e0926b73b23eea6894314a8a99bb429c689a59.tar.bz2
otp-04e0926b73b23eea6894314a8a99bb429c689a59.zip
Silence a warning in erl_poll about an empty loop body
The warning is: sys/common/erl_poll.c:2513:72: warning: for loop has empty body [-Wempty-body] for (prev_ps = pollsets; ps != prev_ps->next; prev_ps = prev_ps->next);
-rw-r--r--erts/emulator/sys/common/erl_poll.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/erts/emulator/sys/common/erl_poll.c b/erts/emulator/sys/common/erl_poll.c
index 7676d8872a..0a58a625b2 100644
--- a/erts/emulator/sys/common/erl_poll.c
+++ b/erts/emulator/sys/common/erl_poll.c
@@ -2510,7 +2510,8 @@ ERTS_POLL_EXPORT(erts_poll_destroy_pollset)(ErtsPollSet ps)
pollsets = pollsets->next;
else {
ErtsPollSet prev_ps;
- for (prev_ps = pollsets; ps != prev_ps->next; prev_ps = prev_ps->next);
+ for (prev_ps = pollsets; ps != prev_ps->next; prev_ps = prev_ps->next)
+ ;
ASSERT(ps == prev_ps->next);
prev_ps->next = ps->next;
}