From 8219c87c301ec669f07528e8d8108655f7b705be Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 11 Feb 2015 19:01:11 +0100 Subject: [PATCH] dirmngr: Avoid warning about unused function. * dirmngr/dirmngr.c (my_gnutls_log): Build only if gnutls is used. --- dirmngr/dirmngr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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