1
0
Fork 0

fix Visual Studio compile warnings

This commit is contained in:
Jan Steemann 2016-06-01 17:09:43 +02:00
parent a624ea4ec5
commit 192caed889
4 changed files with 4 additions and 4 deletions

View File

@ -114,7 +114,7 @@ bool FailedLeader::start() const {
todo.openArray(); todo.openArray();
try { try {
_snapshot(toDoPrefix + _jobId).toBuilder(todo); _snapshot(toDoPrefix + _jobId).toBuilder(todo);
} catch (std::exception const& e) { } catch (std::exception const&) {
LOG_TOPIC(INFO, Logger::AGENCY) << LOG_TOPIC(INFO, Logger::AGENCY) <<
"Failed to get key " + toDoPrefix + _jobId + " from agency snapshot"; "Failed to get key " + toDoPrefix + _jobId + " from agency snapshot";
return false; return false;

View File

@ -64,7 +64,7 @@ bool FailedServer::start() const {
todo.openArray(); todo.openArray();
try { try {
_snapshot(toDoPrefix + _jobId).toBuilder(todo); _snapshot(toDoPrefix + _jobId).toBuilder(todo);
} catch (std::exception const& e) { } catch (std::exception const&) {
LOG_TOPIC(INFO, Logger::AGENCY) << LOG_TOPIC(INFO, Logger::AGENCY) <<
"Failed to get key " + toDoPrefix + _jobId + " from agency snapshot"; "Failed to get key " + toDoPrefix + _jobId + " from agency snapshot";
return false; return false;

View File

@ -617,7 +617,7 @@ int Node::getInt() const {
if (type() == NODE) { if (type() == NODE) {
throw StoreException("Must not convert NODE type to int"); throw StoreException("Must not convert NODE type to int");
} }
return slice().getInt(); return static_cast<int>(slice().getInt());
} }

View File

@ -265,7 +265,7 @@ void Supervision::getUniqueIds() {
try { try {
latestId = std::stoul( latestId = std::stoul(
_agent->readDB().get(_agencyPrefix + "/Sync/LatestID").slice().toJson()); _agent->readDB().get(_agencyPrefix + "/Sync/LatestID").slice().toJson());
} catch (std::exception const& e) { } catch (std::exception const&) {
std::this_thread::sleep_for (std::chrono::seconds(1)); std::this_thread::sleep_for (std::chrono::seconds(1));
continue; continue;
} }