From 0157643667f5f5feed1307f0e5226e7dd21a8d6a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 24 Feb 2021 14:15:08 +0100 Subject: [PATCH] zeroconf/Glue: add `noexcept` --- src/zeroconf/Glue.cxx | 2 +- src/zeroconf/Glue.hxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/zeroconf/Glue.cxx b/src/zeroconf/Glue.cxx index e05b71e26..0038819ea 100644 --- a/src/zeroconf/Glue.cxx +++ b/src/zeroconf/Glue.cxx @@ -91,7 +91,7 @@ ZeroconfInit(const ConfigData &config, [[maybe_unused]] EventLoop &loop) } void -ZeroconfDeinit() +ZeroconfDeinit() noexcept { if (!zeroconfEnabled) return; diff --git a/src/zeroconf/Glue.hxx b/src/zeroconf/Glue.hxx index 356b81107..ca379640b 100644 --- a/src/zeroconf/Glue.hxx +++ b/src/zeroconf/Glue.hxx @@ -34,7 +34,7 @@ void ZeroconfInit(const ConfigData &config, EventLoop &loop); void -ZeroconfDeinit(); +ZeroconfDeinit() noexcept; #else /* ! HAVE_ZEROCONF */ @@ -43,7 +43,7 @@ ZeroconfInit(const ConfigData &, EventLoop &) {} static inline void -ZeroconfDeinit() +ZeroconfDeinit() noexcept {} #endif /* ! HAVE_ZEROCONF */