diff options
author | Werner Koch <[email protected]> | 2015-02-11 18:01:11 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2015-02-11 18:01:11 +0000 |
commit | 8219c87c301ec669f07528e8d8108655f7b705be (patch) | |
tree | c112f99a5ffaef4fac2f3ea78ce34553cefac6e6 /dirmngr/dirmngr.c | |
parent | build: Update standard build-aux files. (diff) | |
download | gnupg-8219c87c301ec669f07528e8d8108655f7b705be.tar.gz gnupg-8219c87c301ec669f07528e8d8108655f7b705be.zip |
dirmngr: Avoid warning about unused function.
* dirmngr/dirmngr.c (my_gnutls_log): Build only if gnutls is used.
Diffstat (limited to '')
-rw-r--r-- | dirmngr/dirmngr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dirmngr/dirmngr.c b/dirmngr/dirmngr.c index a46f736a7..fd31b7f93 100644 --- a/dirmngr/dirmngr.c +++ b/dirmngr/dirmngr.c @@ -364,6 +364,7 @@ my_ksba_hash_buffer (void *arg, const char *oid, /* GNUTLS log function callback. */ +#ifdef HTTP_USE_GNUTLS static void my_gnutls_log (int level, const char *text) { @@ -375,7 +376,7 @@ my_gnutls_log (int level, const char *text) log_debug ("gnutls:L%d: %.*s\n", level, n, text); } - +#endif /*HTTP_USE_GNUTLS*/ /* Setup the debugging. With a LEVEL of NULL only the active debug flags are propagated to the subsystems. With LEVEL set, a specific |