From 924c8221fbe5bf58af99c2d14f158065d7433001 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 8 Jul 2021 14:11:10 +0200 Subject: [PATCH] scd: Silence compiler waring about unused args. -- --- scd/app-openpgp.c | 3 +++ scd/app-piv.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index 1fa865f69..425adfb42 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -6138,6 +6138,9 @@ do_reselect (app_t app, ctrl_t ctrl) static gpg_error_t do_check_aid (app_t app, ctrl_t ctrl, const unsigned char *aid, size_t aidlen) { + (void)app; + (void)ctrl; + if (aidlen >= sizeof openpgp_aid && memcmp (aid, openpgp_aid, sizeof openpgp_aid) == 0) return 0; diff --git a/scd/app-piv.c b/scd/app-piv.c index 0d0863d57..33b0150dc 100644 --- a/scd/app-piv.c +++ b/scd/app-piv.c @@ -3613,6 +3613,9 @@ do_reselect (app_t app, ctrl_t ctrl) static gpg_error_t do_check_aid (app_t app, ctrl_t ctrl, const unsigned char *aid, size_t aidlen) { + (void)app; + (void)ctrl; + if (aidlen >= sizeof piv_aid && memcmp (aid, piv_aid, sizeof piv_aid) == 0) return 0;