diff --git a/src/net/SocketError.hxx b/src/net/SocketError.hxx index 8a53c6f98..7a0bfd285 100644 --- a/src/net/SocketError.hxx +++ b/src/net/SocketError.hxx @@ -170,7 +170,7 @@ public: } }; -[[gnu::const]] +[[gnu::pure]] static inline std::system_error MakeSocketError(socket_error_t code, const char *msg) noexcept {