vcl/source/fontsubset/cff.cxx | 7 +++++++ 1 file changed, 7 insertions(+)
New commits: commit 2679c012115424e2728cfe79f7c6b5b243739b4e Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Fri Nov 22 22:28:51 2019 +0100 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Fri Nov 22 23:09:35 2019 +0100 GCC trunk towards GCC 9 still emits a bogus -Wstringop-truncation Change-Id: I14ff82099107302f5e99f22735c37901f68934e9 Reviewed-on: https://gerrit.libreoffice.org/83537 Tested-by: Jenkins Reviewed-by: Julien Nabet <serval2...@yahoo.fr> diff --git a/vcl/source/fontsubset/cff.cxx b/vcl/source/fontsubset/cff.cxx index c1b4724d3db0..208264e7346a 100644 --- a/vcl/source/fontsubset/cff.cxx +++ b/vcl/source/fontsubset/cff.cxx @@ -1631,7 +1631,14 @@ void Type1Emitter::setSubsetName( const char* pSubsetName) { maSubsetName[0] = '\0'; if( pSubsetName) +#if defined __GNUC__ && (__GNUC__ == 8 || __GNUC__ == 9) && !defined __clang__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstringop-truncation" +#endif strncpy( maSubsetName, pSubsetName, sizeof(maSubsetName)); +#if defined __GNUC__ && (__GNUC__ == 8 || __GNUC__ == 9) && !defined __clang__ +#pragma GCC diagnostic pop +#endif maSubsetName[sizeof(maSubsetName)-1] = '\0'; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits