From 3d977aeacbc28696280c7c500b23a55c2fee4bb2 Mon Sep 17 00:00:00 2001 From: seelabs Date: Mon, 31 Jul 2017 11:11:12 -0400 Subject: [PATCH] Updates for gcc compiler --- src/ripple/consensus/Validations.h | 12 +++++++++--- src/ripple/core/Job.h | 2 ++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/ripple/consensus/Validations.h b/src/ripple/consensus/Validations.h index 78bcd3761..ff5c6a31b 100644 --- a/src/ripple/consensus/Validations.h +++ b/src/ripple/consensus/Validations.h @@ -519,8 +519,14 @@ public: stalePolicy_.now(), // The number of validations does not correspond to the number of // distinct ledgerIDs so we do not call reserve on ret. - [&](std::size_t) {}, - [&](NodeKey const&, Validation const& v) { + [](std::size_t) {}, + [this, + &cutoffBefore, + ¤tLedger, + &valCurrentLedger, + &valPriorLedger, + &priorLedger, + &ret](NodeKey const&, Validation const& v) { if (!v.trusted()) return; @@ -539,7 +545,7 @@ public: (valPriorLedger && (v.ledgerID() == priorLedger)))) { countPreferred = true; - JLOG(j_.trace()) << "Counting for " << currentLedger + JLOG(this->j_.trace()) << "Counting for " << currentLedger << " not " << v.ledgerID(); } diff --git a/src/ripple/core/Job.h b/src/ripple/core/Job.h index e70ebc4d0..938508170 100644 --- a/src/ripple/core/Job.h +++ b/src/ripple/core/Job.h @@ -22,6 +22,8 @@ #include +#include + namespace ripple { // Note that this queue should only be used for CPU-bound jobs