Commit 0f810ffb authored by Dominik Charousset's avatar Dominik Charousset

Fix several warnings on Clang

parent 66057553
......@@ -33,7 +33,7 @@ namespace caf {
/// Represents the result of a computation which can either complete
/// successfully with an instance of type `T` or fail with an `error`.
/// @tparam The type of the result.
/// @tparam T The type of the result.
template <typename T>
class expected {
public:
......
......@@ -351,11 +351,11 @@ abstract_coordinator::abstract_coordinator(actor_system& sys)
void abstract_coordinator::cleanup_and_release(resumable* ptr) {
class dummy_unit : public execution_unit {
public:
dummy_unit(local_actor* ptr) : execution_unit(&ptr->home_system()) {
dummy_unit(local_actor* job) : execution_unit(&job->home_system()) {
// nop
}
void exec_later(resumable* ptr) override {
resumables.push_back(ptr);
void exec_later(resumable* job) override {
resumables.push_back(job);
}
std::vector<resumable*> resumables;
};
......@@ -373,6 +373,7 @@ void abstract_coordinator::cleanup_and_release(resumable* ptr) {
case resumable::io_actor: {
auto dsub = static_cast<local_actor*>(sub);
dsub->cleanup(make_error(exit_reason::user_shutdown), &dummy);
break;
}
default:
break;
......
......@@ -89,7 +89,7 @@ void actor_registry::erase(actor_id key) {
}
void actor_registry::inc_running() {
# if defined(CAF_LOG_LEVEL) && CAF_LOG_LEVEL >= CAF_DEBUG
# if defined(CAF_LOG_LEVEL) && CAF_LOG_LEVEL >= CAF_LOG_LEVEL_DEBUG
auto value = ++running_;
CAF_LOG_DEBUG(CAF_ARG(value));
# else
......
......@@ -262,7 +262,7 @@ strong_actor_ptr middleman::remote_lookup(atom_value name, const node_id& nid) {
// nop
}
);
} catch (std::exception& e) {
} catch (std::exception&) {
// nop
}
return result;
......
Subproject commit 14b4464a72dd7b28754a300bfefb21a1883501b9
Subproject commit 6d0fec16d9b1d78011077d71917aa902d9a7c5d5
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