hwpfilter/source/hstyle.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 5d323ee3c765a8767f988d8a7cc26466d0019d20
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Tue Mar 14 22:37:43 2023 +0100
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Wed Mar 15 07:59:31 2023 +0000

    Silence a false warning also for GCC 13
    
    ...as it still hits at least with gcc-c++-13.0.1-0.7.fc38.x86_64
    
    Change-Id: I25f48c241cec17d277c2ff6d4216ee63fdcfc6e6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148901
    Tested-by: Jenkins
    Reviewed-by: Stephan Bergmann <sberg...@redhat.com>

diff --git a/hwpfilter/source/hstyle.cxx b/hwpfilter/source/hstyle.cxx
index bf4538d686db..013f755496a5 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__ <= 12) && !defined __clang__
+#if defined __GNUC__ && (__GNUC__ >= 8 && __GNUC__ <= 13) && !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] = '\0'; // just in case, even though the array is 
zero-initialized
-#if defined __GNUC__ && (__GNUC__ >= 8 && __GNUC__ <= 12) && !defined __clang__
+#if defined __GNUC__ && (__GNUC__ >= 8 && __GNUC__ <= 13) && !defined __clang__
 #pragma GCC diagnostic pop
 #endif
     }

Reply via email to