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

Fix several warnings on Clang

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