Unverified Commit 0964a009 authored by Dominik Charousset's avatar Dominik Charousset Committed by GitHub

Merge pull request #995

Denoise gcc build on linux
parents ccd149ed 63be8a11
......@@ -75,7 +75,7 @@ public:
behavior operator()(local_actor* self) final {
if (hook_ != nullptr)
hook_(self);
auto dptr = static_cast<Base*>(self);
[[maybe_unused]] auto dptr = static_cast<Base*>(self);
if constexpr (ReturnsBehavior) {
auto unbox = [](auto x) -> behavior { return std::move(x.unbox()); };
if constexpr (args_empty) {
......
......@@ -108,7 +108,8 @@ public:
return;
CAF_ASSERT(open_credit >= 0);
CAF_ASSERT(desired_batch_size > 0);
CAF_ASSERT(cache.size() <= std::numeric_limits<int32_t>::max());
CAF_ASSERT(cache.size()
<= static_cast<size_t>(std::numeric_limits<int32_t>::max()));
auto first = cache.begin();
auto last
= first + std::min(open_credit, static_cast<int32_t>(cache.size()));
......
......@@ -70,7 +70,7 @@ T get_or(const settings& xs, string_view name, T default_value) {
auto result = get_if<T>(&xs, name);
if (result)
return std::move(*result);
return std::move(default_value);
return default_value;
}
CAF_CORE_EXPORT std::string
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment