]> granicus.if.org Git - neomutt/commitdiff
Fix three build warnings when DEBUG isn't defined.
authorRichard Russon <rich@flatcap.org>
Fri, 18 Mar 2016 00:12:10 +0000 (17:12 -0700)
committerRichard Russon <rich@flatcap.org>
Fri, 18 Mar 2016 00:12:10 +0000 (17:12 -0700)
hcache.c
imap/auth_gss.c

index 9f3157df07ffa8573dd648586577ea1ecadddce1..f4c0ecf417d0917ff481f376c6222c75b371acc2 100644 (file)
--- a/hcache.c
+++ b/hcache.c
@@ -931,8 +931,10 @@ hcache_open_tc (struct header_cache* h, const char* path)
     return 0;
   else
   {
+#ifdef DEBUG
     int ecode = tcbdbecode (h->db);
     dprint (2, (debugfile, "tcbdbopen failed for %s: %s (ecode %d)\n", path, tcbdberrmsg (ecode), ecode));
+#endif
     tcbdbdel(h->db);
     return -1;
   }
@@ -946,8 +948,10 @@ mutt_hcache_close(header_cache_t *h)
 
   if (!tcbdbclose(h->db))
   {
+#ifdef DEBUG
     int ecode = tcbdbecode (h->db);
     dprint (2, (debugfile, "tcbdbclose failed for %s: %s (ecode %d)\n", h->folder, tcbdberrmsg (ecode), ecode));
+#endif
   }
   tcbdbdel(h->db);
   FREE(&h->folder);
index ab21fd3648258f2fe92263421348f9aecd78f1ce..39786c4f1f43423d7946e9e572f87decae0d8280 100644 (file)
@@ -87,11 +87,12 @@ imap_auth_res_t imap_auth_gss (IMAP_DATA* idata, const char* method)
   gss_ctx_id_t context;
 #ifdef DEBUG
   gss_OID mech_name;
+  char server_conf_flags;
 #endif
   gss_qop_t quality;
   int cflags;
   OM_uint32 maj_stat, min_stat;
-  char buf1[GSS_BUFSIZE], buf2[GSS_BUFSIZE], server_conf_flags;
+  char buf1[GSS_BUFSIZE], buf2[GSS_BUFSIZE];
   unsigned long buf_size;
   int rc;
 
@@ -230,7 +231,9 @@ imap_auth_res_t imap_auth_gss (IMAP_DATA* idata, const char* method)
   dprint (2, (debugfile, "Credential exchange complete\n"));
 
   /* first octet is security levels supported. We want NONE */
+#ifdef DEBUG
   server_conf_flags = ((char*) send_token.value)[0];
+#endif
   if ( !(((char*) send_token.value)[0] & GSS_AUTH_P_NONE) )
   {
     dprint (2, (debugfile, "Server requires integrity or privacy\n"));