Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package doctest for openSUSE:Factory checked in at 2021-06-02 22:11:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/doctest (Old) and /work/SRC/openSUSE:Factory/.doctest.new.1898 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "doctest" Wed Jun 2 22:11:31 2021 rev:7 rq:896647 version:2.4.6 Changes: -------- --- /work/SRC/openSUSE:Factory/doctest/doctest.changes 2021-03-24 16:13:49.431993875 +0100 +++ /work/SRC/openSUSE:Factory/.doctest.new.1898/doctest.changes 2021-06-02 22:11:56.368157543 +0200 @@ -1,0 +2,6 @@ +Tue Jun 1 09:19:24 UTC 2021 - Christophe Giboudeaux <christo...@krop.fr> + +- Add GCC 11 compatibility fix: + * 0001-Fix-build-with-GCC-11.patch + +------------------------------------------------------------------- New: ---- 0001-Fix-build-with-GCC-11.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ doctest.spec ++++++ --- /var/tmp/diff_new_pack.gyWfXN/_old 2021-06-02 22:11:56.952158505 +0200 +++ /var/tmp/diff_new_pack.gyWfXN/_new 2021-06-02 22:11:56.956158511 +0200 @@ -23,6 +23,8 @@ License: MIT URL: http://bit.ly/doctest-docs Source0: https://github.com/onqtam/doctest/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz +# PATCH-FIX-UPSTREAM +Patch0: 0001-Fix-build-with-GCC-11.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig @@ -37,11 +39,12 @@ C++98/C++11 single-header testing framework for unit tests and TDD. %prep -%autosetup +%autosetup -p1 + +%build # fix cmake module path sed -i 's|lib/cmake|%{_lib}/cmake|g' CMakeLists.txt -%build %cmake %cmake_build ++++++ 0001-Fix-build-with-GCC-11.patch ++++++ >From e0ff2bd492fd0dc4d25e6a507aa7d6766ce2da83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kundr=C3=A1t?= <jan.kund...@cesnet.cz> Date: Mon, 17 May 2021 12:41:37 +0200 Subject: [PATCH] Fix build with GCC 11 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GCC 11 started warning about unused-but-set variables. Here's how it fails: examples/all_features/stringification.cpp: In function ???void _DOCTEST_ANON_FUNC_20()???: examples/all_features/stringification.cpp:106:26: error: variable ???bla2??? set but not used [-Werror=unused-but-set-variable] 106 | MyTypeInherited<int> bla2; | ^~~~ I don't think that that assignment is actually doing anything; in fact, there's that other variable which is assigned in a similar manner, but that one is also used for an assert. --- examples/all_features/stringification.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/examples/all_features/stringification.cpp b/examples/all_features/stringification.cpp index a8b5d5b..492e1ec 100644 --- a/examples/all_features/stringification.cpp +++ b/examples/all_features/stringification.cpp @@ -103,9 +103,6 @@ TEST_CASE("all asserts should fail and show how the objects get stringified") { MyTypeInherited<int> bla1; bla1.one = 5; bla1.two = 4u; - MyTypeInherited<int> bla2; - bla2.one = 5; - bla2.two = 6u; Bar::Foo f1; Bar::Foo f2; -- 2.31.1