diff options
author | NIIBE Yutaka <gniibe@fsij.org> | 2023-07-21 07:27:57 +0200 |
---|---|---|
committer | NIIBE Yutaka <gniibe@fsij.org> | 2023-07-21 07:27:57 +0200 |
commit | 30fc365124aa86a915a6a729237a319729c7238e (patch) | |
tree | 876428553ddf2b15ad0d7a20184d374ab6fa6ad6 /dirmngr | |
parent | kbx: Fix error paths to fall back to D-lines. (diff) | |
download | gnupg2-30fc365124aa86a915a6a729237a319729c7238e.tar.xz gnupg2-30fc365124aa86a915a6a729237a319729c7238e.zip |
dirmngr: Silence compiler when it's without LDAP.
* dirmngr/ks-action.c [!USE_LDAP] (ks_action_get): NEWER is not used.
* ks_action_query [!USE_LDAP] (ks_action_query): Ignore unused args.
--
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
Diffstat (limited to 'dirmngr')
-rw-r--r-- | dirmngr/ks-action.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/dirmngr/ks-action.c b/dirmngr/ks-action.c index 002f1a7a5..2e04582a1 100644 --- a/dirmngr/ks-action.c +++ b/dirmngr/ks-action.c @@ -373,6 +373,8 @@ ks_action_get (ctrl_t ctrl, uri_item_t keyservers, || !strcmp (uri->parsed_uri->scheme, "ldaps") || !strcmp (uri->parsed_uri->scheme, "ldapi") || uri->parsed_uri->opaque); +#else + (void)newer; #endif if (is_hkp_s || is_http_s || is_ldap) @@ -590,6 +592,13 @@ ks_action_query (ctrl_t ctrl, const char *url, unsigned int ks_get_flags, return err; #else /* !USE_LDAP */ + (void)ctrl; + (void)url; + (void)ks_get_flags; + (void)filter; + (void)attrs; + (void)newer; + (void)outfp; return gpg_error (GPG_ERR_NOT_IMPLEMENTED); #endif } |