zeroconf/Glue: add noexcept

This commit is contained in:
Max Kellermann 2021-02-24 14:15:08 +01:00
parent fe741bd767
commit 0157643667
2 changed files with 3 additions and 3 deletions

View File

@ -91,7 +91,7 @@ ZeroconfInit(const ConfigData &config, [[maybe_unused]] EventLoop &loop)
} }
void void
ZeroconfDeinit() ZeroconfDeinit() noexcept
{ {
if (!zeroconfEnabled) if (!zeroconfEnabled)
return; return;

View File

@ -34,7 +34,7 @@ void
ZeroconfInit(const ConfigData &config, EventLoop &loop); ZeroconfInit(const ConfigData &config, EventLoop &loop);
void void
ZeroconfDeinit(); ZeroconfDeinit() noexcept;
#else /* ! HAVE_ZEROCONF */ #else /* ! HAVE_ZEROCONF */
@ -43,7 +43,7 @@ ZeroconfInit(const ConfigData &, EventLoop &)
{} {}
static inline void static inline void
ZeroconfDeinit() ZeroconfDeinit() noexcept
{} {}
#endif /* ! HAVE_ZEROCONF */ #endif /* ! HAVE_ZEROCONF */