From: Maxim Mamontov Date: Fri, 20 Sep 2013 22:24:44 +0000 (+0300) Subject: Silence compiler about empty body in 'for'. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/d414065410fdc3d317933944e783efa7aeee80b2?ds=sidebyside;hp=f384309c9c663a4b381d2e1a8545693514835395 Silence compiler about empty body in 'for'. --- diff --git a/stglibs/srvconf.lib/netunit.cpp b/stglibs/srvconf.lib/netunit.cpp index aabb7780..f70cf27d 100644 --- a/stglibs/srvconf.lib/netunit.cpp +++ b/stglibs/srvconf.lib/netunit.cpp @@ -438,7 +438,7 @@ while (true) bool final = false; size_t pos = 0; - for (; pos < ENC_MSG_LEN && buffer[pos] != 0; pos++); + for (; pos < ENC_MSG_LEN && buffer[pos] != 0; pos++) ; if (pos < ENC_MSG_LEN && buffer[pos] == 0) final = true;