diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2024-08-23 11:57:45 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2024-08-23 13:48:09 +0200 |
commit | 6e51d65c3d8031967727092ee2f48b8577db9b85 (patch) | |
tree | 636db4aeb7ab35cd3090988fab9ef814cdb9575b /sw | |
parent | 73884e28faeb457c01b80051a701c073112ad564 (diff) |
Silence some bogus -Werror=array-bounds etc. also with GCC 14 and -std=c++20
Change-Id: If7a3e0d7536642ae672ba6096183bb8413b36a31
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172310
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/doc.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx index 8ab0b82dce7d..ae631735138f 100644 --- a/sw/source/core/doc/doc.cxx +++ b/sw/source/core/doc/doc.cxx @@ -992,13 +992,13 @@ void SwDoc::CalculatePagePairsForProspectPrinting( // just one page is special ... if ( 1 == aVec.size() ) { -#if defined __GNUC__ && !defined __clang__ && __GNUC__ <= 13 && __cplusplus == 202002L +#if defined __GNUC__ && !defined __clang__ && __GNUC__ <= 14 && __cplusplus == 202002L #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Warray-bounds" #pragma GCC diagnostic ignored "-Wstringop-overflow" #endif aVec.insert( aVec.begin() + 1, nullptr ); // insert a second empty page -#if defined __GNUC__ && !defined __clang__ && __GNUC__ <= 13 && __cplusplus == 202002L +#if defined __GNUC__ && !defined __clang__ && __GNUC__ <= 14 && __cplusplus == 202002L #pragma GCC diagnostic pop #endif } |