From a45949b59756690743497c697d4dcf7d11e4802a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 1 Dec 2021 15:48:23 +0100 Subject: [PATCH] tag/MixRamp: [[gnu::...]] attributes --- src/tag/MixRamp.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tag/MixRamp.cxx b/src/tag/MixRamp.cxx index e1e520a64..6af84931f 100644 --- a/src/tag/MixRamp.cxx +++ b/src/tag/MixRamp.cxx @@ -55,7 +55,7 @@ ParseMixRampTag(MixRampInfo &info, const char *name; const char *value; - gcc_pure + [[gnu::pure]] StringView operator[](const char *n) const noexcept { return StringEqualsCaseASCII(name, n) ? value @@ -72,7 +72,7 @@ ParseMixRampVorbis(MixRampInfo &info, StringView entry) noexcept struct VorbisCommentEntry { StringView entry; - gcc_pure + [[gnu::pure]] StringView operator[](StringView n) const noexcept { return GetVorbisCommentValue(entry, n); }