sw/source/core/doc/doc.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 6e51d65c3d8031967727092ee2f48b8577db9b85
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Fri Aug 23 11:57:45 2024 +0200
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Fri Aug 23 13:48:09 2024 +0200

    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 <serval2...@yahoo.fr>
    Tested-by: Julien Nabet <serval2...@yahoo.fr>

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
     }

Reply via email to