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

New commits:
commit a835b40e05462e9be58cb501aa6b938f3dc998b8
Author:     Julien Nabet <serval2...@yahoo.fr>
AuthorDate: Wed May 1 15:50:50 2024 +0200
Commit:     Julien Nabet <serval2...@yahoo.fr>
CommitDate: Wed May 1 18:41:10 2024 +0200

    Silence some bogus -Werror=array-bounds etc. also with GCC 13 and -std=c++20
    
    See 1c3c27bc2e42f70e588ef5dbc769a8a346042e04
    Silence some bogus -Werror=array-bounds etc. with GCC 12 and -std=c++20
    
    Change-Id: I65675d1f18415ae82afb98c7d388dac3cdc18ab0
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166966
    Reviewed-by: Julien Nabet <serval2...@yahoo.fr>
    Tested-by: Jenkins

diff --git a/sw/source/core/doc/doc.cxx b/sw/source/core/doc/doc.cxx
index 62add1d5bae5..c6641fd4580a 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__ == 12 && __cplusplus == 
202002L
+#if defined __GNUC__ && !defined __clang__ && __GNUC__ <= 13 && __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__ == 12 && __cplusplus == 
202002L
+#if defined __GNUC__ && !defined __clang__ && __GNUC__ <= 13 && __cplusplus == 
202002L
 #pragma GCC diagnostic pop
 #endif
     }

Reply via email to