Fix warnings shown by GCC (#47)

* fix all warnings shown by GCC
This commit is contained in:
Dylam De La Torre authored and GitHub committed 2021-11-16 19:38:14 +00:00
1 parent 108002248c
commit 9d21df8e1b
24 files changed
+65 -76

No files matched your search

+1 -1
View File
@@ -142,7 +142,7 @@ void FileCacheWorkerThread::loop() {
m_cv.wait(lock);
}
static const auto concurrency = Abaddon::Get().GetSettings().GetCacheHTTPConcurrency();
static const auto concurrency = static_cast<size_t>(Abaddon::Get().GetSettings().GetCacheHTTPConcurrency());
if (m_handles.size() < concurrency) {
std::optional<QueueEntry> entry;
m_queue_mutex.lock();