Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package benchmark for openSUSE:Factory checked in at 2026-06-02 19:46:32 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/benchmark (Old) and /work/SRC/openSUSE:Factory/.benchmark.new.1937 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "benchmark" Tue Jun 2 19:46:32 2026 rev:28 rq:1356420 version:1.9.5 Changes: -------- --- /work/SRC/openSUSE:Factory/benchmark/benchmark.changes 2026-03-03 15:29:45.874158078 +0100 +++ /work/SRC/openSUSE:Factory/.benchmark.new.1937/benchmark.changes 2026-06-02 19:46:36.891379179 +0200 @@ -1,0 +2,5 @@ +Mon Jun 1 10:09:28 UTC 2026 - Josef Melcr <[email protected]> + +- Add gcc16.patch to fix the broken build with GCC 16 + +------------------------------------------------------------------- New: ---- gcc16.patch ----------(New B)---------- New: - Add gcc16.patch to fix the broken build with GCC 16 ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ benchmark.spec ++++++ --- /var/tmp/diff_new_pack.to6Itp/_old 2026-06-02 19:46:38.243435180 +0200 +++ /var/tmp/diff_new_pack.to6Itp/_new 2026-06-02 19:46:38.247435346 +0200 @@ -25,6 +25,7 @@ License: Apache-2.0 URL: https://github.com/google/benchmark Source: %{name}-%{version}.tar.gz +Patch0: gcc16.patch BuildRequires: cmake >= 3.5.1 BuildRequires: gcc-c++ BuildRequires: git-core @@ -49,7 +50,7 @@ Development files for google benchmark library %prep -%autosetup +%autosetup -p1 %build sed -e 's|lib_install_dir "lib/"|lib_install_dir "%{_libdir}/"|g' \ ++++++ gcc16.patch ++++++ Index: benchmark-1.9.5/test/basic_test.cc =================================================================== --- benchmark-1.9.5.orig/test/basic_test.cc +++ benchmark-1.9.5/test/basic_test.cc @@ -147,7 +147,7 @@ BENCHMARK(BM_RangedFor); template <typename T> void BM_OneTemplateFunc(benchmark::State& state) { auto arg = state.range(0); - T sum = 0; + BENCHMARK_UNUSED T sum = 0; for (auto _ : state) { sum += static_cast<T>(arg); } @@ -158,8 +158,8 @@ BENCHMARK(BM_OneTemplateFunc<double>)->A template <typename A, typename B> void BM_TwoTemplateFunc(benchmark::State& state) { auto arg = state.range(0); - A sum = 0; - B prod = 1; + BENCHMARK_UNUSED A sum = 0; + BENCHMARK_UNUSED B prod = 1; for (auto _ : state) { sum += static_cast<A>(arg); prod *= static_cast<B>(arg);
