From 8050394003e80c80ee1acdc2b2e0c0338f10dbaf Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 1 Dec 2020 20:10:52 +0100 Subject: [PATCH] event/Loop: add `noexcept` --- src/event/Loop.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/event/Loop.cxx b/src/event/Loop.cxx index e59d6dfa9..806e0e71a 100644 --- a/src/event/Loop.cxx +++ b/src/event/Loop.cxx @@ -242,7 +242,7 @@ duration_cast_round_up(std::chrono::duration d) noexcept * value (= never times out) is translated to the magic value -1. */ static constexpr int -ExportTimeoutMS(Event::Duration timeout) +ExportTimeoutMS(Event::Duration timeout) noexcept { return timeout >= timeout.zero() ? int(duration_cast_round_up(timeout).count())