mirror of https://gitee.com/bigwinds/arangodb
fix Visual Studio compile warnings
This commit is contained in:
parent
a624ea4ec5
commit
192caed889
|
@ -114,7 +114,7 @@ bool FailedLeader::start() const {
|
|||
todo.openArray();
|
||||
try {
|
||||
_snapshot(toDoPrefix + _jobId).toBuilder(todo);
|
||||
} catch (std::exception const& e) {
|
||||
} catch (std::exception const&) {
|
||||
LOG_TOPIC(INFO, Logger::AGENCY) <<
|
||||
"Failed to get key " + toDoPrefix + _jobId + " from agency snapshot";
|
||||
return false;
|
||||
|
|
|
@ -64,7 +64,7 @@ bool FailedServer::start() const {
|
|||
todo.openArray();
|
||||
try {
|
||||
_snapshot(toDoPrefix + _jobId).toBuilder(todo);
|
||||
} catch (std::exception const& e) {
|
||||
} catch (std::exception const&) {
|
||||
LOG_TOPIC(INFO, Logger::AGENCY) <<
|
||||
"Failed to get key " + toDoPrefix + _jobId + " from agency snapshot";
|
||||
return false;
|
||||
|
|
|
@ -617,7 +617,7 @@ int Node::getInt() const {
|
|||
if (type() == NODE) {
|
||||
throw StoreException("Must not convert NODE type to int");
|
||||
}
|
||||
return slice().getInt();
|
||||
return static_cast<int>(slice().getInt());
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -265,7 +265,7 @@ void Supervision::getUniqueIds() {
|
|||
try {
|
||||
latestId = std::stoul(
|
||||
_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));
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue