net/SocketError: change "const" to "pure"

This commit is contained in:
Max Kellermann 2021-04-06 13:58:31 +02:00
parent ca726a0110
commit 3d814115c8

View File

@ -170,7 +170,7 @@ public:
}
};
[[gnu::const]]
[[gnu::pure]]
static inline std::system_error
MakeSocketError(socket_error_t code, const char *msg) noexcept
{