summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2021-11-05 15:17:42 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-11-05 17:49:12 +0100
commite495d0e5614e08f0eacdb5ea5deb0c1e0a0f3db4 (patch)
tree53a25bf86772680b77e057680d0a8e2ccf94d636 /hwpfilter
parentb22f665e2337ab019ec727f6d4a4d4c3e7b9453b (diff)
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.grandin@collabora.co.uk>
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hstyle.cxx4
1 files changed, 2 insertions, 2 deletions
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
}