You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2014/05/12 21:28:33 UTC

git commit: Add a return statement to Varint64Comparator::Compare in leveldb to silence the compiler warning. This patch fixes this build error with ICC.

Repository: mesos
Updated Branches:
  refs/heads/master 9d4adaacb -> c4188341d


Add a return statement to Varint64Comparator::Compare in leveldb to
silence the compiler warning. This patch fixes this build error with
ICC.

Review: https://reviews.apache.org/r/21292


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/c4188341
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/c4188341
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/c4188341

Branch: refs/heads/master
Commit: c4188341d5a4e6039ba4ed1d8f0549f6bb65d1bc
Parents: 9d4adaa
Author: Vinson Lee <vl...@freedesktop.org>
Authored: Mon May 12 12:25:03 2014 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Mon May 12 12:27:57 2014 -0700

----------------------------------------------------------------------
 src/log/leveldb.cpp | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/c4188341/src/log/leveldb.cpp
----------------------------------------------------------------------
diff --git a/src/log/leveldb.cpp b/src/log/leveldb.cpp
index 7811f2b..2967a1f 100644
--- a/src/log/leveldb.cpp
+++ b/src/log/leveldb.cpp
@@ -30,6 +30,7 @@
 #include <stout/numify.hpp>
 #include <stout/stopwatch.hpp>
 #include <stout/strings.hpp>
+#include <stout/unreachable.hpp>
 
 #include "log/leveldb.hpp"
 
@@ -53,6 +54,7 @@ public:
     // if (left < right) return -1;
     // if (left == right) return 0;
     // if (left > right) return 1;
+    return UNREACHABLE();
   }
 
   virtual const char* Name() const