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;