From 3d814115c873ffef63d4f8aba49e359cfb8294c1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 6 Apr 2021 13:58:31 +0200 Subject: [PATCH] net/SocketError: change "const" to "pure" --- src/net/SocketError.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {