Skip to content

Commit 44bcb86

Browse files
lauromouracalvaris
authored andcommitted
REGRESSION(304354@main) GLIB build failure without assertions due to wrong WARN_UNUSED_RETURN
https://bugs.webkit.org/show_bug.cgi?id=304063 Reviewed by Xabier Rodriguez-Calvar. Update the macro position, like 304354@main did. * Source/WTF/wtf/glib/GMallocString.h: Canonical link: https://commits.webkit.org/304358@main
1 parent 43932e1 commit 44bcb86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/WTF/wtf/glib/GMallocString.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class GMallocString final {
9595

9696
bool isNull() const { return m_spanWithNullTerminator.span().empty(); }
9797
const char* utf8() const LIFETIME_BOUND { return byteCast<char>(m_spanWithNullTerminator.span().data()); }
98-
char* leakUTF8() WARN_UNUSED_RETURN { return byteCast<char>(m_spanWithNullTerminator.leakSpan().data()); }
98+
WARN_UNUSED_RETURN char* leakUTF8() { return byteCast<char>(m_spanWithNullTerminator.leakSpan().data()); }
9999
size_t lengthInBytes() const { return !m_spanWithNullTerminator.span().empty() ? m_spanWithNullTerminator.span().size() - 1 : 0; }
100100
std::span<const char8_t> span() const LIFETIME_BOUND { return m_spanWithNullTerminator.span().first(lengthInBytes()); }
101101
std::span<const char8_t> spanIncludingNullTerminator() const LIFETIME_BOUND { return m_spanWithNullTerminator.span(); }

0 commit comments

Comments
 (0)