Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package canokey-qemu for openSUSE:Factory checked in at 2026-01-26 10:44:48 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/canokey-qemu (Old) and /work/SRC/openSUSE:Factory/.canokey-qemu.new.1928 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "canokey-qemu" Mon Jan 26 10:44:48 2026 rev:3 rq:1328878 version:0.0+git20230606.151568c Changes: -------- --- /work/SRC/openSUSE:Factory/canokey-qemu/canokey-qemu.changes 2024-01-26 22:46:04.165609822 +0100 +++ /work/SRC/openSUSE:Factory/.canokey-qemu.new.1928/canokey-qemu.changes 2026-01-26 10:58:24.356155033 +0100 @@ -1,0 +2,6 @@ +Fri Jan 23 11:02:32 UTC 2026 - Dario Faggioli <[email protected]> + +- Fix building with GCC 16 (bsc#1256957) + * Patch added: mbedtls-fix-building-with-GCC-16.patch + +------------------------------------------------------------------- New: ---- mbedtls-fix-building-with-GCC-16.patch ----------(New B)---------- New:- Fix building with GCC 16 (bsc#1256957) * Patch added: mbedtls-fix-building-with-GCC-16.patch ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ canokey-qemu.spec ++++++ --- /var/tmp/diff_new_pack.vJ98tS/_old 2026-01-26 10:58:31.940469476 +0100 +++ /var/tmp/diff_new_pack.vJ98tS/_new 2026-01-26 10:58:31.944469641 +0100 @@ -1,7 +1,7 @@ # # spec file for package canokey-qemu # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,7 @@ Source: %{name}-%{version}.tar Patch0: canokey-git.diff Patch1: canokey-core-static.diff +Patch2: mbedtls-fix-building-with-GCC-16.patch BuildRequires: cmake BuildRequires: glibc-devel-static ++++++ mbedtls-fix-building-with-GCC-16.patch ++++++ >From 1694b87736a74a5fbbbc93599bc359ed9b890073 Mon Sep 17 00:00:00 2001 From: Dario Faggioli <[email protected]> Date: Fri, 23 Jan 2026 11:59:01 +0100 Subject: [PATCH] mbedtls: fix building with GCC 16 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GCC 16 is strictier about variables set but not actually used. In fact, the build (in OBS) with it fails like this: 13s] [...]/mbedtls/library/bignum.c:1650:29: error: variable âtâ set but not used [-Werror=unused-but-set-variable=] [ 13s] 1650 | mbedtls_mpi_uint c = 0, t = 0; [ 13s] | ^ [ 13s] cc1: all warnings being treated as errors However, the variable is used in some of the macros. Let's add a "fake" read of it, for silencing the warning. References: bsc#1256957 Signed-off-by: Dario Faggioli <[email protected]> --- library/bignum.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/canokey-core/canokey-crypto/mbedtls/library/bignum.c b/canokey-core/canokey-crypto/mbedtls/library/bignum.c index 20afa22d5d..2548576f0b 100644 --- a/canokey-core/canokey-crypto/mbedtls/library/bignum.c +++ b/canokey-core/canokey-crypto/mbedtls/library/bignum.c @@ -1699,6 +1699,8 @@ void mpi_mul_hlp( size_t i, #endif /* MULADDC_HUIT */ t++; + // FIX: Silence GCC16 "set but unused" warning + (void) t; while( c != 0 ) { -- 2.52.0
