diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-04-29 17:14:38 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-05-03 13:48:47 +0200 |
commit | 44238adb52550623c7b8ed905cbf8dc9ba832886 (patch) | |
tree | 4682ff1ab91d9b81234fc35135e4a0492c44756f /hwpfilter | |
parent | 9a7aa3326d087c79879e435179e359dd76aa5e0a (diff) |
GCC trunk towards GCC 9 still emits a bogus -Wstringop-truncation
Change-Id: I1e9e439558025030f79e070680831f1139675993
Reviewed-on: https://gerrit.libreoffice.org/66869
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 8950cb46fb67..e0573edf9cad 100644 --- a/hwpfilter/source/hstyle.cxx +++ b/hwpfilter/source/hstyle.cxx @@ -67,14 +67,14 @@ void HWPStyle::SetName(int n, char const *name) { if (name) { -#if defined __GNUC__ && __GNUC__ == 8 && (__GNUC_MINOR__ == 2 || __GNUC_MINOR__ == 3) && !defined __clang__ +#if defined __GNUC__ && (__GNUC__ == 8 || __GNUC__ == 9) && !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_MINOR__ == 2 || __GNUC_MINOR__ == 3) && !defined __clang__ +#if defined __GNUC__ && (__GNUC__ == 8 || __GNUC__ == 9) && !defined __clang__ #pragma GCC diagnostic pop #endif } |