hwpfilter/source/hstyle.cxx     |    4 ++--
 idl/source/cmptools/lex.cxx     |    8 ++++----
 linguistic/source/lngsvcmgr.cxx |    4 ++--
 xmloff/source/text/txtflde.cxx  |    4 ++--
 4 files changed, 10 insertions(+), 10 deletions(-)

New commits:
commit 0e44a3a894c8e8acde73e4db5192d3dab045a9fe
Author:     Stephan Bergmann <[email protected]>
AuthorDate: Mon Jul 28 09:52:53 2025 +0200
Commit:     Stephan Bergmann <[email protected]>
CommitDate: Mon Jul 28 15:32:05 2025 +0200

    Some bogus warnings still hit with recent GCC trunk
    
    ...towards GCC 16
    
    Change-Id: I6d6acf7ba9373f94dfbd7aef6ad2ff44e1932791
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/188461
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <[email protected]>

diff --git a/hwpfilter/source/hstyle.cxx b/hwpfilter/source/hstyle.cxx
index 3221f73f8624..e155a86e9728 100644
--- a/hwpfilter/source/hstyle.cxx
+++ b/hwpfilter/source/hstyle.cxx
@@ -68,14 +68,14 @@ void HWPStyle::SetName(int n, char const* name)
 
     if (name)
     {
-#if defined __GNUC__ && (__GNUC__ >= 8 && __GNUC__ <= 15) && !defined __clang__
+#if defined __GNUC__ && (__GNUC__ >= 8 && __GNUC__ <= 16) && !defined __clang__
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wstringop-truncation"
 #endif
         auto const p = style[n].name;
         strncpy(p, name, MAXSTYLENAME);
         p[MAXSTYLENAME] = '
-#if defined __GNUC__ && (__GNUC__ >= 8 && __GNUC__ <= 15) && !defined __clang__
+#if defined __GNUC__ && (__GNUC__ >= 8 && __GNUC__ <= 16) && !defined __clang__
 #pragma GCC diagnostic pop
 #endif
     }
diff --git a/idl/source/cmptools/lex.cxx b/idl/source/cmptools/lex.cxx
index e81821f3750f..45944966211a 100644
--- a/idl/source/cmptools/lex.cxx
+++ b/idl/source/cmptools/lex.cxx
@@ -89,12 +89,12 @@ void SvTokenStream::FillTokenList()
         {
             if (!aTokList.empty())
             {
-#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 12 && __GNUC__ <= 15
+#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 12 && __GNUC__ <= 16
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
 #endif
                 *pToken = SvToken();
-#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 12 && __GNUC__ <= 15
+#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 12 && __GNUC__ <= 16
 #pragma GCC diagnostic pop
 #endif
                 std::vector<std::unique_ptr<SvToken> >::const_iterator it = 
aTokList.begin();
@@ -106,12 +106,12 @@ void SvTokenStream::FillTokenList()
         }
         else if( pToken->IsComment() )
         {
-#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 12 && __GNUC__ <= 15
+#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 12 && __GNUC__ <= 16
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
 #endif
             *pToken = SvToken();
-#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 12 && __GNUC__ <= 15
+#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 12 && __GNUC__ <= 16
 #pragma GCC diagnostic pop
 #endif
         }
diff --git a/linguistic/source/lngsvcmgr.cxx b/linguistic/source/lngsvcmgr.cxx
index 11cc7f7a9707..9fd9bf54c34a 100644
--- a/linguistic/source/lngsvcmgr.cxx
+++ b/linguistic/source/lngsvcmgr.cxx
@@ -504,7 +504,7 @@ void LngSvcMgr::disposing(const lang::EventObject&)
     stopListening();
 }
 
-#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 14 && __GNUC__ <= 15
+#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 14 && __GNUC__ <= 16
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
 #endif
@@ -521,7 +521,7 @@ LngSvcMgr::~LngSvcMgr()
     pAvailHyphSvcs.reset();
     pAvailThesSvcs.reset();
 }
-#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 14 && __GNUC__ <= 15
+#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 14 && __GNUC__ <= 16
 #pragma GCC diagnostic pop
 #endif
 
diff --git a/xmloff/source/text/txtflde.cxx b/xmloff/source/text/txtflde.cxx
index b74acff7fffb..c841cb6014de 100644
--- a/xmloff/source/text/txtflde.cxx
+++ b/xmloff/source/text/txtflde.cxx
@@ -2264,12 +2264,12 @@ void 
XMLTextFieldExport::SetExportOnlyUsedFieldDeclarations(
 
     // create used masters set (if none is used)
     if (bExportOnlyUsed)
-#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 14 && __GNUC__ <= 15
+#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 14 && __GNUC__ <= 16
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
 #endif
         moUsedMasters.emplace();
-#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 14 && __GNUC__ <= 15
+#if defined __GNUC__ && !defined __clang__ && __GNUC__ >= 14 && __GNUC__ <= 16
 #pragma GCC diagnostic pop
 #endif
 }

Reply via email to