aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/Document.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 7c5eb6fa8..b7b5b2427 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -52,6 +52,11 @@
using namespace Scintilla;
using namespace Scintilla::Internal;
+#if defined(__GNUC__) && !defined(__clang__)
+// False warnings from g++ 14.1 for UTF-8 accumulation code where UTF8MaxBytes allocated.
+#pragma GCC diagnostic ignored "-Wstringop-overflow"
+#endif
+
LexInterface::LexInterface(Document *pdoc_) noexcept : pdoc(pdoc_), performingStyle(false) {
}