diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2024-05-23 11:13:59 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2024-05-23 11:13:59 +1000 |
commit | d379e86e4a50ad19f243e4713c6c400279e5fd49 (patch) | |
tree | 5719d62f66b6e76e910c792a408ab7d362769ba4 | |
parent | 1589acff0c8429a61b3e3c854efa6278bfc317c4 (diff) | |
download | scintilla-mirror-d379e86e4a50ad19f243e4713c6c400279e5fd49.tar.gz |
Suppress some warnings from g++ 14.1 where a UTF-8 character has a maximum
length of 4 (UTF8MaxBytes) but the compiler doesn't see this is enforced.
-rw-r--r-- | src/Document.cxx | 5 |
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) { } |