From 4e9b88559bb27f850cbdff24d5119d6770ba21de Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 3 Dec 2021 16:09:16 +0100 Subject: [PATCH] SingleMode: convert "pure" to "const" --- src/SingleMode.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SingleMode.hxx b/src/SingleMode.hxx index 91a9a2619..e9563d961 100644 --- a/src/SingleMode.hxx +++ b/src/SingleMode.hxx @@ -31,7 +31,7 @@ enum class SingleMode : uint8_t { /** * Return the string representation of a #SingleMode. */ -[[gnu::pure]] +[[gnu::const]] const char * SingleToString(SingleMode mode) noexcept;