summaryrefslogtreecommitdiff
path: root/hwpfilter
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2019-04-28 16:03:10 +0200
committerStephan Bergmann <sbergman@redhat.com>2019-04-29 09:11:26 +0200
commit7cf3574ac9208e70c03eeaca2def0235ec90f55f (patch)
tree7ede7c621facbedcd5085c4afc2e36e35cd28427 /hwpfilter
parent0d47abc53d6a20b7bdab7939137be89fb422020c (diff)
Avoid -Werror=format/stringop-truncation
It also affects gcc 8.3 Change-Id: I896e84d5e1e96abfe81294e921cfcc060e44fb6f Reviewed-on: https://gerrit.libreoffice.org/71474 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'hwpfilter')
-rw-r--r--hwpfilter/source/hstyle.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwpfilter/source/hstyle.cxx b/hwpfilter/source/hstyle.cxx
index 87fd1efbe978..1848067f14df 100644
--- a/hwpfilter/source/hstyle.cxx
+++ b/hwpfilter/source/hstyle.cxx
@@ -67,7 +67,7 @@ void HWPStyle::SetName(int n, char const *name)
{
if (name)
{
-#if defined __GNUC__ && __GNUC__ == 8 && __GNUC_MINOR__ == 2 && !defined __clang__
+#if defined __GNUC__ && __GNUC__ == 8 && (__GNUC_MINOR__ == 2 || __GNUC_MINOR__ == 3) && !defined __clang__
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-truncation"
#endif