diff options
author | Max Kellermann <mk@cm4all.com> | 2021-02-08 14:59:40 +0100 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2021-04-06 14:09:21 +0200 |
commit | 95ad1b0cc6703f1c00b377ce280745fd3183fcac (patch) | |
tree | 8dab8d4914d546ea3b2d46abbeeeb8230163b137 /src | |
parent | 52f46b94e93fff5e6c981ce13cb914b4743383a4 (diff) |
use [[gnu::pure]] instead of gcc_pure
This is semi-standard and doesn't require the util/Compiler.h header.
Diffstat (limited to 'src')
-rw-r--r-- | src/util/MimeType.hxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/util/MimeType.hxx b/src/util/MimeType.hxx index e607bc3e3..0c4a04b3e 100644 --- a/src/util/MimeType.hxx +++ b/src/util/MimeType.hxx @@ -30,8 +30,6 @@ #ifndef MIME_TYPE_HXX #define MIME_TYPE_HXX -#include "util/Compiler.h" - #include <string> #include <string_view> #include <map> @@ -41,7 +39,7 @@ * part before the semicolon. If there is no semicolon, it returns * the string as-is. */ -gcc_pure +[[gnu::pure]] std::string_view GetMimeTypeBase(std::string_view s) noexcept; |