Here's a small patch to fix a warning in mutt_ssl.c:

mutt_ssl.c:117:8: warning: unused variable 'buf' [-Wunused-variable]

Built and tested on OpenBSD against head commit
04a7f1d9585ca21894ec09283becd9425d1c1334.

Cheers,

--Aaron

diff --git a/mutt_ssl.c b/mutt_ssl.c
index 91507948..7ce15c1c 100644
--- a/mutt_ssl.c
+++ b/mutt_ssl.c
@@ -114,8 +114,10 @@ static int ssl_load_certificates (SSL_CTX *ctx)
   FILE *fp;
   X509 *cert = NULL;
   X509_STORE *store;
-  char buf[STRING];
   int rv = 1;
+# ifdef DEBUG
+  char buf[STRING];
+# endif
 
   dprint (2, (debugfile, "ssl_load_certificates: loading trusted 
certificates\n"));
   store = SSL_CTX_get_cert_store (ctx);

Reply via email to