diff mbox series

swupdate_gpg_verify: drop warnings

Message ID 20260712123010.125300-1-stefano.babic@swupdate.org
State Accepted
Headers show
Series swupdate_gpg_verify: drop warnings | expand

Commit Message

Stefano Babic July 12, 2026, 12:30 p.m. UTC
Drop warnings due to unused parameters.

Signed-off-by: Stefano Babic <stefano.babic@swupdate.org>
---
 crypto/swupdate_gpg_verify.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/crypto/swupdate_gpg_verify.c b/crypto/swupdate_gpg_verify.c
index b726336f..c37df008 100644
--- a/crypto/swupdate_gpg_verify.c
+++ b/crypto/swupdate_gpg_verify.c
@@ -29,7 +29,7 @@  status_cb(void *opaque, const char *keyword, const char *value)
 
 #define MSGBUF_LEN 256
 
-static int gpg_dgst_init(struct swupdate_cfg *sw, const char *keyfile)
+static int gpg_dgst_init(struct swupdate_cfg *sw, __attribute__ ((__unused__)) const char *keyfile)
 {
 	struct gpg_digest *dgst;
 	int ret;
@@ -63,7 +63,7 @@  dgst_init_error:
 }
 
 static int gpg_verify_file(void *gpgdgst, const char *sigfile,
-                const char *file, const char *signer_name)
+                const char *file, __attribute__ ((__unused__)) const char *signer_name)
 {
 	struct gpg_digest *dgst = (struct gpg_digest *)gpgdgst;
 	gpgme_ctx_t ctx;