forked from ports/contrib
49 lines
1.6 KiB
Diff
49 lines
1.6 KiB
Diff
From 1aa9ea92e20142a1ce2f2e1ac40ed1fa781fac19 Mon Sep 17 00:00:00 2001
|
|
From: gabime <gmelman1@gmail.com>
|
|
Date: Tue, 3 Dec 2019 00:35:28 +0200
|
|
Subject: [PATCH] Fix #1340
|
|
|
|
---
|
|
include/spdlog/details/circular_q.h | 1 +
|
|
include/spdlog/details/pattern_formatter-inl.h | 2 --
|
|
include/spdlog/details/thread_pool-inl.h | 1 +
|
|
3 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/include/spdlog/details/circular_q.h b/include/spdlog/details/circular_q.h
|
|
index 325dbfea..1f2712e7 100644
|
|
--- a/include/spdlog/details/circular_q.h
|
|
+++ b/include/spdlog/details/circular_q.h
|
|
@@ -5,6 +5,7 @@
|
|
#pragma once
|
|
|
|
#include <vector>
|
|
+#include <cassert>
|
|
|
|
namespace spdlog {
|
|
namespace details {
|
|
diff --git a/include/spdlog/details/pattern_formatter-inl.h b/include/spdlog/details/pattern_formatter-inl.h
|
|
index cc2f7eaa..6fdc78a9 100644
|
|
--- a/include/spdlog/details/pattern_formatter-inl.h
|
|
+++ b/include/spdlog/details/pattern_formatter-inl.h
|
|
@@ -75,8 +75,6 @@ class scoped_padder
|
|
private:
|
|
void pad_it(long count)
|
|
{
|
|
- // count = std::min(count, spaces_.size());
|
|
- // assert(count <= spaces_.size());
|
|
fmt_helper::append_string_view(string_view_t(spaces_.data(), static_cast<size_t>(count)), dest_);
|
|
}
|
|
|
|
diff --git a/include/spdlog/details/thread_pool-inl.h b/include/spdlog/details/thread_pool-inl.h
|
|
index 29a6363f..43220f43 100644
|
|
--- a/include/spdlog/details/thread_pool-inl.h
|
|
+++ b/include/spdlog/details/thread_pool-inl.h
|
|
@@ -8,6 +8,7 @@
|
|
#endif
|
|
|
|
#include <spdlog/common.h>
|
|
+#include <cassert>
|
|
|
|
namespace spdlog {
|
|
namespace details {
|