[PATCH] swupdate_gpg_verify: drop warnings

7 views
Skip to first unread message

Stefano Babic

unread,
Jul 12, 2026, 8:30:18 AM (4 days ago) Jul 12
to swup...@googlegroups.com, Stefano Babic
Drop warnings due to unused parameters.

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

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;
--
2.55.0

Reply all
Reply to author
Forward
0 new messages