From 49bcdfb5e653974a4e12131d67803faa14345c75 Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Sat, 31 Oct 2026 17:39:40 +0000 Subject: [PATCH] Fix Utf16::codepoint linking on modern gcc It looks like in (at least) gcc 15+, the inline allows for the function definition to be omitted from linking altogether. This causes linking errors if another file calls it, as is the case in TestUtf16 in the native tests. We didn't see this in ci before because it was using ubuntu 24.04, which ran gcc 13. --- src/cpp/encoding/Encodings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cpp/encoding/Encodings.cpp b/src/cpp/encoding/Encodings.cpp index ade6e088a..ae2b7b1b3 100644 --- a/src/cpp/encoding/Encodings.cpp +++ b/src/cpp/encoding/Encodings.cpp @@ -635,7 +635,7 @@ String cpp::encoding::Utf16::decode(const cpp::marshal::View& buffer) #endif } -inline char32_t cpp::encoding::Utf16::codepoint(const cpp::marshal::View& buffer) +char32_t cpp::encoding::Utf16::codepoint(const cpp::marshal::View& buffer) { auto first = static_cast(Marshal::readUInt16(buffer));