[ 
https://issues.apache.org/jira/browse/MESOS-2117?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gavin updated MESOS-2117:
-------------------------
    Comment: was deleted

(was: www.rtat.net)

> clock.cpp: control reaches end of non-void function.
> ----------------------------------------------------
>
>                 Key: MESOS-2117
>                 URL: https://issues.apache.org/jira/browse/MESOS-2117
>             Project: Mesos
>          Issue Type: Bug
>          Components: build
>            Reporter: Benjamin Mahler
>            Priority: Major
>
> Caused by this code:
> {code}
> bool Clock::settled()
> {
>   synchronized (timeouts) {
>     CHECK(clock::paused);
>     if (update_timer) {
>       return false;
>     } else if (clock::settling) {
>       VLOG(3) << "Clock still not settled";
>       return false;
>     } else if (timeouts->size() == 0 ||
>                timeouts->begin()->first > clock::current) {
>       VLOG(3) << "Clock is settled";
>       return true;
>     }
>     VLOG(3) << "Clock is not settled";
>     return false;
>   }
> }
> {code}
> {noformat}
> src/clock.cpp: In static member function 'static bool 
> process::Clock::settled()':
> src/clock.cpp:421:1: warning: control reaches end of non-void function 
> [-Wreturn-type]
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to