Repository: mesos Updated Branches: refs/heads/master 719be2502 -> ff19e9786
Fixed a compiler warning in log network using UNREACHABLE. Review: https://reviews.apache.org/r/18794 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/ff19e978 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/ff19e978 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/ff19e978 Branch: refs/heads/master Commit: ff19e978677e0a143904bd450afdde2b72e4fcbd Parents: 719be25 Author: Jie Yu <[email protected]> Authored: Thu Mar 6 10:33:21 2014 -0800 Committer: Vinod Kone <[email protected]> Committed: Thu Mar 6 10:33:21 2014 -0800 ---------------------------------------------------------------------- src/log/network.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/ff19e978/src/log/network.hpp ---------------------------------------------------------------------- diff --git a/src/log/network.hpp b/src/log/network.hpp index 9c76bf8..74dc200 100644 --- a/src/log/network.hpp +++ b/src/log/network.hpp @@ -35,6 +35,7 @@ #include <stout/foreach.hpp> #include <stout/lambda.hpp> #include <stout/nothing.hpp> +#include <stout/unreachable.hpp> #include "logging/logging.hpp" @@ -288,7 +289,7 @@ private: return pids.size() >= size; default: LOG(FATAL) << "Invalid watch mode"; - break; + return UNREACHABLE(); } }
