You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Vinod Kone (JIRA)" <ji...@apache.org> on 2014/04/23 19:17:15 UTC
[jira] [Resolved] (MESOS-1230) Compiler warning in libprocess
statistics
[ https://issues.apache.org/jira/browse/MESOS-1230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vinod Kone resolved MESOS-1230.
-------------------------------
Resolution: Fixed
Fix Version/s: 0.19.0
commit 1f0c6ee15217b1ba25003cff3b3f174b9334e6d9
Author: Dominic Hamon <dh...@twopensource.com>
Date: Wed Apr 23 10:15:05 2014 -0700
Fixed implicit cast from double to size_t in statistics.
Review: https://reviews.apache.org/r/20614
> Compiler warning in libprocess statistics
> -----------------------------------------
>
> Key: MESOS-1230
> URL: https://issues.apache.org/jira/browse/MESOS-1230
> Project: Mesos
> Issue Type: Bug
> Components: libprocess, statistics
> Reporter: Jie Yu
> Assignee: Dominic Hamon
> Fix For: 0.19.0
>
>
> gcc version 4.1.2 20080704 (Red Hat 4.1.2-54)
> {noformat}
> ../../../../mesos/3rdparty/libprocess/include/process/statistics.hpp: In static member function ‘static T process::Statistics<T>::percentile(const std::vector<T, std::allocator<_CharT> >&, double) [with T = double]’:
> ../../../../mesos/3rdparty/libprocess/include/process/statistics.hpp:46: instantiated from ‘static Option<process::Statistics<T> > process::Statistics<T>::from(const process::TimeSeries<T>&) [with T = double]’
> ../../../../mesos/3rdparty/libprocess/src/tests/statistics_tests.cpp:16: instantiated from here
> ../../../../mesos/3rdparty/libprocess/include/process/statistics.hpp:84: warning: converting to ‘size_t’ from ‘double’
> mv -f .deps/tests-statistics_tests.Tpo .deps/tests-statistics_tests.Po
> mv -f .deps/tests-timeseries_tests.Tpo .deps/tests-timeseries_tests.Po
> ../../../../mesos/3rdparty/libprocess/include/process/statistics.hpp: In static member function ‘static T process::Statistics<T>::percentile(const std::vector<T, std::allocator<_CharT> >&, double) [with T = double]’:
> ../../../../mesos/3rdparty/libprocess/include/process/statistics.hpp:46: instantiated from ‘static Option<process::Statistics<T> > process::Statistics<T>::from(const process::TimeSeries<T>&) [with T = double]’
> ../../../../mesos/3rdparty/libprocess/include/process/metrics/metric.hpp:38: instantiated from here
> ../../../../mesos/3rdparty/libprocess/include/process/statistics.hpp:84: warning: converting to ‘size_t’ from ‘double’
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.2#6252)