You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Gavin (JIRA)" <ji...@apache.org> on 2019/04/29 09:28:12 UTC

[jira] [Issue Comment Deleted] (MESOS-2117) clock.cpp: control reaches end of non-void function.

     [ 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)