diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-04-29 12:35:40 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-04-29 14:27:56 +0200 |
commit | df5d1e47c33a8b9bf2b9783d5338f8432827a760 (patch) | |
tree | a56c8dacdd6b949de6c3c853c5fe9591c4053f1c /hwpfilter | |
parent | 0d5ae0b0e88e30b7c196613bd0b8f3d3eb18674a (diff) |
Fix conditional around closing #pragma GCC diagnostic pop
...which 7cf3574ac9208e70c03eeaca2def0235ec90f55f "Avoid
-Werror=format/stringop-truncation" had failed to adapt
Change-Id: Ide00c8136db27519c2d694576910c423d40d481e
Reviewed-on: https://gerrit.libreoffice.org/71521
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'hwpfilter')
-rw-r--r-- | hwpfilter/source/hstyle.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hwpfilter/source/hstyle.cxx b/hwpfilter/source/hstyle.cxx index 1848067f14df..8950cb46fb67 100644 --- a/hwpfilter/source/hstyle.cxx +++ b/hwpfilter/source/hstyle.cxx @@ -74,7 +74,7 @@ void HWPStyle::SetName(int n, char const *name) 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_MINOR__ == 2 && !defined __clang__ +#if defined __GNUC__ && __GNUC__ == 8 && (__GNUC_MINOR__ == 2 || __GNUC_MINOR__ == 3) && !defined __clang__ #pragma GCC diagnostic pop #endif } |