summaryrefslogtreecommitdiffstats
path: root/agent
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2022-09-14 04:48:42 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2022-09-14 05:08:58 +0200
commit3d7dbf16618db4d0dc602daadbde098d4a14b528 (patch)
tree455db0a589aaaed3657f475bd88400ceafd4b045 /agent
parenttools:gpg-auth: Enhance it to support use case for login. (diff)
downloadgnupg2-3d7dbf16618db4d0dc602daadbde098d4a14b528.tar.xz
gnupg2-3d7dbf16618db4d0dc602daadbde098d4a14b528.zip
agent,dirmngr,gpg,scd: Clean up for modern compiler.
* agent/protect.c (agent_get_shadow_info_type): It's a write only variable, useful for debugging. * g10/key-check.c (key_check_all_keysigs): Likewise. * g10/keyedit.c (show_basic_key_info, menu_expire): Likewise. * scd/app-sc-hsm.c (read_ef_prkd): Likewise. * dirmngr/crlfetch.c (fetch_next_ksba_cert): Initialize the vars. * dirmngr/ks-action.c (ks_action_help): Remove unused variables. * dirmngr/server.c (make_keyserver_item): Likewise. * dirmngr/validate.c (check_cert_sig): Initialize the variable. * scd/app-p15.c (select_and_read_record): Likewise. * tests/gpgscm/scheme.c (scheme_init_new): A function with no args. -- Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'agent')
-rw-r--r--agent/protect.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/agent/protect.c b/agent/protect.c
index bc44fe107..1084ee208 100644
--- a/agent/protect.c
+++ b/agent/protect.c
@@ -1632,6 +1632,7 @@ agent_get_shadow_info_type (const unsigned char *shadowkey,
size_t n, saved_n;
int depth = 0;
+ (void)depth;
s = shadowkey;
if (*s != '(')
return gpg_error (GPG_ERR_INV_SEXP);