0002-Fix-stub-functions-to-avoid-LTO-linking-bugs-followup.patch (1370B)
1 https://bugs.gentoo.org/854222 2 3 From 40b28085f30f6031bd72ae24d736c9116d70f547 Mon Sep 17 00:00:00 2001 4 Message-ID: <40b28085f30f6031bd72ae24d736c9116d70f547.1770174958.git.sam@gentoo.org> 5 From: Sam James <sam@gentoo.org> 6 Date: Sun, 4 Jan 2026 02:04:39 +0000 7 Subject: [PATCH GnuPG] Fix -Wlto-type-mismatch warnings [T4416] 8 9 * agent/t-protect.c (convert_from_openpgp_native): Sync stub definition. 10 11 -- 12 13 GnuPG-bug-id: 4416 14 15 When building with GCC -flto, some warnings appear because of 16 mismatched definitions in stubs (gpgv or tests). Sync them with the 17 real definitions to fix the warnings, as they just drifted over time. 18 19 Followup to 81760cc931d69f37cf2a8ad54616a1af590fd2cf. 20 21 Signed-off-by: Sam James <sam@gentoo.org> 22 --- 23 agent/t-protect.c | 7 +++++-- 24 1 file changed, 5 insertions(+), 2 deletions(-) 25 26 diff --git a/agent/t-protect.c b/agent/t-protect.c 27 index e6edbffba..9508de36a 100644 28 --- a/agent/t-protect.c 29 +++ b/agent/t-protect.c 30 @@ -341,9 +341,12 @@ main (int argc, char **argv) 31 32 /* Stub function. */ 33 gpg_error_t 34 -convert_from_openpgp_native (gcry_sexp_t s_pgp, const char *passphrase, 35 - unsigned char **r_key) 36 +convert_from_openpgp_native (ctrl_t ctrl, 37 + gcry_sexp_t s_pgp, 38 + const char *passphrase, 39 + unsigned char **r_key) 40 { 41 + (void)ctrl; 42 (void)s_pgp; 43 (void)passphrase; 44 (void)r_key; 45 -- 46 2.53.0 47