Skip to content

Commit 255db94

Browse files
committed
Fix compiler warnings
1 parent 693a149 commit 255db94

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/icingadb/icingadb-objects.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1932,7 +1932,7 @@ unsigned short GetPreviousState(const Checkable::Ptr& checkable, const Service::
19321932
if (service) {
19331933
return phs;
19341934
} else {
1935-
return phs == 99 ? phs : Host::CalculateState(ServiceState(phs));
1935+
return phs == 99 ? phs : (unsigned short)Host::CalculateState(ServiceState(phs));
19361936
}
19371937
}
19381938

lib/icingadb/redisconnection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ void RedisConnection::EnqueueCallback(const std::function<void(boost::asio::yiel
224224
auto ctime (Utility::GetTime());
225225

226226
asio::post(m_Strand, [this, callback, priority, ctime]() {
227-
m_Queues.Writes[priority].emplace(WriteQueueItem{nullptr, nullptr, nullptr, nullptr, callback, ctime});
227+
m_Queues.Writes[priority].emplace(WriteQueueItem{nullptr, nullptr, nullptr, nullptr, callback, ctime, QueryAffects{}});
228228
m_QueuedWrites.Set();
229229
});
230230
}

0 commit comments

Comments
 (0)