Repository: mesos
Updated Branches:
  refs/heads/master fbcc3922d -> 240d1bbef


Fixed unevaluated expression warning in
'stout/tests/linkedhashmap_tests.cpp'.


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

Branch: refs/heads/master
Commit: 240d1bbefd4eda74db8aa8538646a49cd17c8c61
Parents: fbcc392
Author: Michael Park <[email protected]>
Authored: Sat Aug 8 02:58:46 2015 -0400
Committer: Michael Park <[email protected]>
Committed: Sat Aug 8 02:58:47 2015 -0400

----------------------------------------------------------------------
 3rdparty/libprocess/3rdparty/stout/tests/linkedhashmap_tests.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/240d1bbe/3rdparty/libprocess/3rdparty/stout/tests/linkedhashmap_tests.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/tests/linkedhashmap_tests.cpp 
b/3rdparty/libprocess/3rdparty/stout/tests/linkedhashmap_tests.cpp
index 5e385f4..209bd86 100644
--- a/3rdparty/libprocess/3rdparty/stout/tests/linkedhashmap_tests.cpp
+++ b/3rdparty/libprocess/3rdparty/stout/tests/linkedhashmap_tests.cpp
@@ -102,6 +102,7 @@ TEST(LinkedHashmapTest, Values)
 
   int val = 0;
   foreach (int value, map.values()) {
-    ASSERT_EQ(++val, value);
+    ++val;
+    ASSERT_EQ(val, value);
   }
 }

Reply via email to