event/Loop: use [[gnu::pure]]

This commit is contained in:
Max Kellermann
2021-02-04 21:26:48 +01:00
committed by Max Kellermann
parent a8e70f18fd
commit 2a30acd99c
3 changed files with 5 additions and 7 deletions

View File

@@ -100,7 +100,7 @@ public:
event.Close();
}
[[nodiscard]] gcc_pure
[[nodiscard]] [[gnu::pure]]
std::string ToString() const noexcept {
return ::ToString(address);
}
@@ -328,7 +328,7 @@ ServerSocket::AddPortIPv6(unsigned port) noexcept
/**
* Is IPv6 supported by the kernel?
*/
gcc_pure
[[gnu::pure]]
static bool
SupportsIPv6() noexcept
{