Commit 6ae25bc3 authored by Dominik Charousset's avatar Dominik Charousset

Fix "unreachable code" warning

parent 5d923b9d
...@@ -121,8 +121,9 @@ bool abstract_actor::link_impl(linking_operation op, const actor_addr& other) { ...@@ -121,8 +121,9 @@ bool abstract_actor::link_impl(linking_operation op, const actor_addr& other) {
return remove_link_impl(other); return remove_link_impl(other);
case remove_backlink_op: case remove_backlink_op:
return remove_backlink_impl(other); return remove_backlink_impl(other);
default:
return false;
} }
return false;
} }
bool abstract_actor::establish_link_impl(const actor_addr& other) { bool abstract_actor::establish_link_impl(const actor_addr& other) {
......
...@@ -83,7 +83,7 @@ bool forwarding_actor_proxy::link_impl(linking_operation op, ...@@ -83,7 +83,7 @@ bool forwarding_actor_proxy::link_impl(linking_operation op,
make_message(atom("_Link"), other)); make_message(atom("_Link"), other));
return true; return true;
} }
return false; break;
case remove_link_op: case remove_link_op:
if (remove_link_impl(other)) { if (remove_link_impl(other)) {
// causes remote actor to unlink from (proxy of) other // causes remote actor to unlink from (proxy of) other
...@@ -91,7 +91,7 @@ bool forwarding_actor_proxy::link_impl(linking_operation op, ...@@ -91,7 +91,7 @@ bool forwarding_actor_proxy::link_impl(linking_operation op,
make_message(atom("_Unlink"), other)); make_message(atom("_Unlink"), other));
return true; return true;
} }
return false; break;
case establish_backlink_op: case establish_backlink_op:
if (establish_backlink_impl(other)) { if (establish_backlink_impl(other)) {
// causes remote actor to unlink from (proxy of) other // causes remote actor to unlink from (proxy of) other
...@@ -99,7 +99,7 @@ bool forwarding_actor_proxy::link_impl(linking_operation op, ...@@ -99,7 +99,7 @@ bool forwarding_actor_proxy::link_impl(linking_operation op,
make_message(atom("_Link"), other)); make_message(atom("_Link"), other));
return true; return true;
} }
return false; break;
case remove_backlink_op: case remove_backlink_op:
if (remove_backlink_impl(other)) { if (remove_backlink_impl(other)) {
// causes remote actor to unlink from (proxy of) other // causes remote actor to unlink from (proxy of) other
...@@ -107,7 +107,7 @@ bool forwarding_actor_proxy::link_impl(linking_operation op, ...@@ -107,7 +107,7 @@ bool forwarding_actor_proxy::link_impl(linking_operation op,
make_message(atom("_Unlink"), other)); make_message(atom("_Unlink"), other));
return true; return true;
} }
return false; break;
} }
return false; return false;
} }
......
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