Fix clang warnings

This commit is contained in:
Howard Hinnant
2014-02-25 15:49:27 -05:00
committed by Vinnie Falco
parent 9bf1a76e91
commit cd30e552a7
28 changed files with 115 additions and 66 deletions

View File

@@ -87,7 +87,7 @@ public:
Consumer c (logic.newInboundEndpoint (addr));
// Create load until we get a warning
for (std::size_t n (maxLoopCount); n>=0; --n)
for (std::size_t n (maxLoopCount); true; --n)
{
if (n == 0)
{
@@ -104,7 +104,7 @@ public:
}
// Create load until we get dropped
for (std::size_t n (maxLoopCount); n>=0; --n)
for (std::size_t n (maxLoopCount); true; --n)
{
if (n == 0)
{
@@ -127,7 +127,7 @@ public:
expect (c.disconnect ());
}
for (std::size_t n (maxLoopCount); n>=0; --n)
for (std::size_t n (maxLoopCount); true; --n)
{
Consumer c (logic.newInboundEndpoint (addr));
if (n == 0)