mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Fix clang warnings
This commit is contained in:
committed by
Vinnie Falco
parent
9bf1a76e91
commit
cd30e552a7
@@ -201,8 +201,6 @@ public:
|
||||
|
||||
{
|
||||
SharedState::Access state (m_state);
|
||||
Table::iterator iter (
|
||||
state->table.find (*prior.key));
|
||||
std::pair <Table::iterator, bool> result (
|
||||
state->table.emplace (key, 0));
|
||||
entry = &result.first->second;
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user