summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/support/string.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/support/string.cpp b/src/support/string.cpp
index 01fe4e522..7dc9ba89c 100644
--- a/src/support/string.cpp
+++ b/src/support/string.cpp
@@ -318,6 +318,9 @@ std::ostream& writeWTF16CodePoint(std::ostream& os, uint32_t u) {
return os;
}
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
+
bool convertWTF8ToWTF16(std::ostream& os, std::string_view str) {
bool valid = true;
bool lastWasLeadingSurrogate = false;
@@ -343,6 +346,8 @@ bool convertWTF8ToWTF16(std::ostream& os, std::string_view str) {
return valid;
}
+#pragma GCC diagnostic pop
+
bool convertWTF16ToWTF8(std::ostream& os, std::string_view str) {
return doConvertWTF16ToWTF8(os, str, true);
}