From 6e51d65c3d8031967727092ee2f48b8577db9b85 Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Fri, 23 Aug 2024 11:57:45 +0200 Subject: 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 Tested-by: Julien Nabet --- sw/source/core/doc/doc.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw') 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 } -- cgit