From 4218f56f6c83fe02a95a97ecdc83346941e3c77c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 6 Aug 2018 11:56:13 +0200 Subject: [PATCH] system/SignalFD: add "noexcept" --- src/system/SignalFD.cxx | 2 +- src/system/SignalFD.hxx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/system/SignalFD.cxx b/src/system/SignalFD.cxx index d974b6630..bc2c0fc63 100644 --- a/src/system/SignalFD.cxx +++ b/src/system/SignalFD.cxx @@ -33,7 +33,7 @@ SignalFD::Create(const sigset_t &mask) } int -SignalFD::Read() +SignalFD::Read() noexcept { assert(fd.IsDefined()); diff --git a/src/system/SignalFD.hxx b/src/system/SignalFD.hxx index bc589fa41..69385fc8c 100644 --- a/src/system/SignalFD.hxx +++ b/src/system/SignalFD.hxx @@ -39,11 +39,11 @@ public: */ void Create(const sigset_t &mask); - void Close() { + void Close() noexcept { fd.Close(); } - int Get() const { + int Get() const noexcept { return fd.Get(); } @@ -52,7 +52,7 @@ public: * signal number on success or -1 if there are no more * signals. */ - int Read(); + int Read() noexcept; }; #endif