tag/VorbisComment: use [[gnu::pure]]

This commit is contained in:
Max Kellermann 2021-10-13 10:31:15 +02:00
parent 3ef7d8fecb
commit 08500be239

View File

@ -20,15 +20,13 @@
#ifndef MPD_TAG_VORBIS_COMMENT_HXX #ifndef MPD_TAG_VORBIS_COMMENT_HXX
#define MPD_TAG_VORBIS_COMMENT_HXX #define MPD_TAG_VORBIS_COMMENT_HXX
#include "util/Compiler.h"
struct StringView; struct StringView;
/** /**
* Checks if the specified name matches the entry's name, and if yes, * Checks if the specified name matches the entry's name, and if yes,
* returns the comment value. * returns the comment value.
*/ */
gcc_pure [[gnu::pure]]
StringView StringView
GetVorbisCommentValue(StringView entry, StringView name) noexcept; GetVorbisCommentValue(StringView entry, StringView name) noexcept;