Commit abed633f authored by Max Kellermann's avatar Max Kellermann

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

parent db2a9cb6
......@@ -29,7 +29,7 @@
#include <stdlib.h>
gcc_pure
[[gnu::pure]]
static const char *
FindInvalidUTF8(const char *p, const char *const end) noexcept
{
......@@ -116,7 +116,7 @@ clear_non_printable(StringView src)
return { dest, src.size };
}
gcc_pure
[[gnu::pure]]
static bool
IsSafe(StringView s) noexcept
{
......
......@@ -20,12 +20,9 @@
#ifndef MPD_TAG_STRING_HXX
#define MPD_TAG_STRING_HXX
#include "util/Compiler.h"
struct StringView;
template<typename T> struct WritableBuffer;
gcc_nonnull_all
WritableBuffer<char>
FixTagString(StringView p);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment