From 08500be239bf01899b723f752b4e64acd011e4ed Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 13 Oct 2021 10:31:15 +0200 Subject: [PATCH] tag/VorbisComment: use [[gnu::pure]] --- src/tag/VorbisComment.hxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/tag/VorbisComment.hxx b/src/tag/VorbisComment.hxx index 23ce9f110..4588f0211 100644 --- a/src/tag/VorbisComment.hxx +++ b/src/tag/VorbisComment.hxx @@ -20,15 +20,13 @@ #ifndef MPD_TAG_VORBIS_COMMENT_HXX #define MPD_TAG_VORBIS_COMMENT_HXX -#include "util/Compiler.h" - struct StringView; /** * Checks if the specified name matches the entry's name, and if yes, * returns the comment value. */ -gcc_pure +[[gnu::pure]] StringView GetVorbisCommentValue(StringView entry, StringView name) noexcept;