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

This commit is contained in:
Max Kellermann
2021-10-13 10:32:29 +02:00
parent 7caeb3b0d8
commit db2a9cb6d5
2 changed files with 3 additions and 11 deletions

View File

@@ -236,11 +236,6 @@ TagBuilder::AddItem(TagType type, StringView value) noexcept
void
TagBuilder::AddItem(TagType type, const char *value) noexcept
{
#if !CLANG_CHECK_VERSION(3,6)
/* disabled on clang due to -Wtautological-pointer-compare */
assert(value != nullptr);
#endif
AddItem(type, StringView(value));
}