From 95ad1b0cc6703f1c00b377ce280745fd3183fcac Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 8 Feb 2021 14:59:40 +0100 Subject: [PATCH] use [[gnu::pure]] instead of gcc_pure This is semi-standard and doesn't require the util/Compiler.h header. --- src/util/MimeType.hxx | 4 +--- 1 file changed, 1 insertion(+), 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 #include #include @@ -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;