From 4e84fa4a005a5a1c83d4091d8cb8adb2a1dc04a4 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 13 Oct 2021 10:31:45 +0200 Subject: [PATCH] RemoteTagCache: use [[gnu::pure]] --- src/RemoteTagCache.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/RemoteTagCache.hxx b/src/RemoteTagCache.hxx index 64145ff51..ed87f9706 100644 --- a/src/RemoteTagCache.hxx +++ b/src/RemoteTagCache.hxx @@ -68,20 +68,20 @@ class RemoteTagCache final { struct Hash : std::hash { using std::hash::operator(); - gcc_pure + [[gnu::pure]] std::size_t operator()(const Item &item) const noexcept { return std::hash::operator()(item.uri); } }; struct Equal { - gcc_pure + [[gnu::pure]] bool operator()(const Item &a, const Item &b) const noexcept { return a.uri == b.uri; } - gcc_pure + [[gnu::pure]] bool operator()(const std::string &a, const Item &b) const noexcept { return a == b.uri;