From eefc0f5d80fbcb485db230c3df090b69994a75ce Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 16 Oct 2018 21:26:01 +0200 Subject: [PATCH] input/Error: add `noexcept` --- src/input/Error.cxx | 2 +- src/input/Error.hxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/input/Error.cxx b/src/input/Error.cxx index 3db1f26f1..b3f0e7e65 100644 --- a/src/input/Error.cxx +++ b/src/input/Error.cxx @@ -31,7 +31,7 @@ #endif bool -IsFileNotFound(std::exception_ptr ep) +IsFileNotFound(std::exception_ptr ep) noexcept { try { std::rethrow_exception(ep); diff --git a/src/input/Error.hxx b/src/input/Error.hxx index c857f827e..04ea27ab8 100644 --- a/src/input/Error.hxx +++ b/src/input/Error.hxx @@ -32,6 +32,6 @@ */ gcc_pure bool -IsFileNotFound(std::exception_ptr e); +IsFileNotFound(std::exception_ptr e) noexcept; #endif