diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-03-14 22:37:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-03-15 07:59:31 +0000 |
commit | 5d323ee3c765a8767f988d8a7cc26466d0019d20 (patch) | |
tree | ec49abe284e4b5e12cb8bdad62b95b1deac13823 /hwpfilter | |
parent | 69b0fa8a6267a1fa77e77405000f42e8aeba5fa0 (diff) |
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 <sbergman@redhat.com>
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/hstyle.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |