Updates for gcc compiler

This commit is contained in:
seelabs
2017-07-31 11:11:12 -04:00
parent 4308b124c2
commit 3d977aeacb
2 changed files with 11 additions and 3 deletions

View File

@@ -519,8 +519,14 @@ public:
stalePolicy_.now(), stalePolicy_.now(),
// The number of validations does not correspond to the number of // The number of validations does not correspond to the number of
// distinct ledgerIDs so we do not call reserve on ret. // distinct ledgerIDs so we do not call reserve on ret.
[&](std::size_t) {}, [](std::size_t) {},
[&](NodeKey const&, Validation const& v) { [this,
&cutoffBefore,
&currentLedger,
&valCurrentLedger,
&valPriorLedger,
&priorLedger,
&ret](NodeKey const&, Validation const& v) {
if (!v.trusted()) if (!v.trusted())
return; return;
@@ -539,7 +545,7 @@ public:
(valPriorLedger && (v.ledgerID() == priorLedger)))) (valPriorLedger && (v.ledgerID() == priorLedger))))
{ {
countPreferred = true; countPreferred = true;
JLOG(j_.trace()) << "Counting for " << currentLedger JLOG(this->j_.trace()) << "Counting for " << currentLedger
<< " not " << v.ledgerID(); << " not " << v.ledgerID();
} }

View File

@@ -22,6 +22,8 @@
#include <ripple/core/LoadMonitor.h> #include <ripple/core/LoadMonitor.h>
#include <functional>
namespace ripple { namespace ripple {
// Note that this queue should only be used for CPU-bound jobs // Note that this queue should only be used for CPU-bound jobs