Repository: mesos Updated Branches: refs/heads/master 5d0b5fdb5 -> 1876ac2fc
Fixed a compiler warning in cgroups memory pressure tests. Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/1876ac2f Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/1876ac2f Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/1876ac2f Branch: refs/heads/master Commit: 1876ac2fce952128fdd9fc5305d3346e2a03c894 Parents: 5d0b5fd Author: Jie Yu <[email protected]> Authored: Mon Mar 30 10:07:28 2015 -0700 Committer: Jie Yu <[email protected]> Committed: Mon Mar 30 10:07:28 2015 -0700 ---------------------------------------------------------------------- src/tests/cgroups_tests.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/1876ac2f/src/tests/cgroups_tests.cpp ---------------------------------------------------------------------- diff --git a/src/tests/cgroups_tests.cpp b/src/tests/cgroups_tests.cpp index 8483738..e18aed1 100644 --- a/src/tests/cgroups_tests.cpp +++ b/src/tests/cgroups_tests.cpp @@ -1099,9 +1099,9 @@ TEST_F(CgroupsAnyHierarchyMemoryPressureTest, ROOT_IncreaseUnlockedRSS) listen(); // Used to save the counter readings from last iteration. - uint64_t previousLow; - uint64_t previousMedium; - uint64_t previousCritical; + uint64_t previousLow = 0; + uint64_t previousMedium = 0; + uint64_t previousCritical = 0; // Used to save the counter readings from this iteration. uint64_t low; @@ -1169,9 +1169,9 @@ TEST_F(CgroupsAnyHierarchyMemoryPressureTest, ROOT_IncreasePageCache) listen(); // Used to save the counter readings from last iteration. - uint64_t previousLow; - uint64_t previousMedium; - uint64_t previousCritical; + uint64_t previousLow = 0; + uint64_t previousMedium = 0; + uint64_t previousCritical = 0; // Used to save the counter readings from this iteration. uint64_t low;
