Hello community, here is the log from the commit of package bctoolbox for openSUSE:Factory checked in at 2019-05-03 22:25:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/bctoolbox (Old) and /work/SRC/openSUSE:Factory/.bctoolbox.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "bctoolbox" Fri May 3 22:25:53 2019 rev:6 rq:700028 version:0.6.0 Changes: -------- --- /work/SRC/openSUSE:Factory/bctoolbox/bctoolbox.changes 2018-08-27 13:47:05.948358915 +0200 +++ /work/SRC/openSUSE:Factory/.bctoolbox.new.5148/bctoolbox.changes 2019-05-03 22:25:54.708151268 +0200 @@ -1,0 +2,6 @@ +Tue Apr 30 08:17:53 UTC 2019 - Martin Liška <[email protected]> + +- Add gcc9-stringop-bogus-warning.patch in order to fix a misleading + warning by GCC 9 (boo#1121200). + +------------------------------------------------------------------- New: ---- gcc9-stringop-bogus-warning.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bctoolbox.spec ++++++ --- /var/tmp/diff_new_pack.Hu1agE/_old 2019-05-03 22:25:55.376152637 +0200 +++ /var/tmp/diff_new_pack.Hu1agE/_new 2019-05-03 22:25:55.380152645 +0200 @@ -1,7 +1,7 @@ # # spec file for package bctoolbox # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -28,6 +28,7 @@ Source1: baselibs.conf # PATCH-FIX-OPENSUSE bctoolbox-fix-pkgconfig.patch Patch0: bctoolbox-fix-pkgconfig.patch +Patch1: gcc9-stringop-bogus-warning.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: mbedtls-devel @@ -76,6 +77,7 @@ %prep %setup -q %patch0 -p1 +%patch1 -p1 %build %cmake \ ++++++ gcc9-stringop-bogus-warning.patch ++++++ diff --git a/src/logging/logging.c b/src/logging/logging.c index 7252840..0f135fa 100644 --- a/src/logging/logging.c +++ b/src/logging/logging.c @@ -305,6 +305,9 @@ char *bctbx_strdup_printf(const char *fmt,...){ return ret; } +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wstringop-truncation" + char * bctbx_strcat_vprintf(char* dst, const char *fmt, va_list ap){ char *ret; size_t dstlen, retlen; @@ -326,6 +329,8 @@ char * bctbx_strcat_vprintf(char* dst, const char *fmt, va_list ap){ } } +#pragma GCC diagnostic pop + char *bctbx_strcat_printf(char* dst, const char *fmt,...){ char *ret; va_list args;
