You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by be...@apache.org on 2015/06/04 15:06:51 UTC

mesos git commit: Fix uninitialized warning introduced by synchronized patches.

Repository: mesos
Updated Branches:
  refs/heads/master bf1151a4c -> eb83e8ba3


Fix uninitialized warning introduced by synchronized patches.

This warning was only showing with clang.

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


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

Branch: refs/heads/master
Commit: eb83e8ba3691d49320d23faff38c6a9f6864af8e
Parents: bf1151a
Author: Joris Van Remoortere <jo...@gmail.com>
Authored: Thu Jun 4 06:06:35 2015 -0700
Committer: Benjamin Hindman <be...@gmail.com>
Committed: Thu Jun 4 06:06:35 2015 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/include/process/metrics/timer.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/eb83e8ba/3rdparty/libprocess/include/process/metrics/timer.hpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/include/process/metrics/timer.hpp b/3rdparty/libprocess/include/process/metrics/timer.hpp
index 92cef2b..fd7b2db 100644
--- a/3rdparty/libprocess/include/process/metrics/timer.hpp
+++ b/3rdparty/libprocess/include/process/metrics/timer.hpp
@@ -60,7 +60,7 @@ public:
 
     T t(0);
 
-    double value;
+    double value = 0.0;
 
     synchronized (data->lock) {
       t = T(stop - data->start);