hwpfilter/source/hstyle.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit e495d0e5614e08f0eacdb5ea5deb0c1e0a0f3db4 Author: Noel Grandin <noel.gran...@collabora.co.uk> AuthorDate: Fri Nov 5 15:17:42 2021 +0200 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Fri Nov 5 17:49:12 2021 +0100 update diagnostic ignore problem still present in gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0 Change-Id: I5bc2115be0cda4a444f493645b86e60290c9d0fc Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124751 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> diff --git a/hwpfilter/source/hstyle.cxx b/hwpfilter/source/hstyle.cxx index 33f143440c32..fbbe30025d0a 100644 --- a/hwpfilter/source/hstyle.cxx +++ b/hwpfilter/source/hstyle.cxx @@ -70,14 +70,14 @@ void HWPStyle::SetName(int n, char const* name) if (name) { -#if defined __GNUC__ && (__GNUC__ >= 8 && __GNUC__ <= 10) && !defined __clang__ +#if defined __GNUC__ && (__GNUC__ >= 8 && __GNUC__ <= 11) && !defined __clang__ #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wstringop-truncation" #endif auto const p = DATA[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__ <= 10) && !defined __clang__ +#if defined __GNUC__ && (__GNUC__ >= 8 && __GNUC__ <= 11) && !defined __clang__ #pragma GCC diagnostic pop #endif }