changeset: 6577:80926cec6d41
user:      Richard Russon <[email protected]>
date:      Thu Mar 17 17:12:10 2016 -0700
link:      http://dev.mutt.org/hg/mutt/rev/80926cec6d41

Fix three build warnings when DEBUG isn't defined.

diffs (52 lines):

diff -r cc1af19c0763 -r 80926cec6d41 hcache.c
--- a/hcache.c  Wed Mar 16 14:15:14 2016 -0700
+++ b/hcache.c  Thu Mar 17 17:12:10 2016 -0700
@@ -931,8 +931,10 @@
     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 @@
 
   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);
diff -r cc1af19c0763 -r 80926cec6d41 imap/auth_gss.c
--- a/imap/auth_gss.c   Wed Mar 16 14:15:14 2016 -0700
+++ b/imap/auth_gss.c   Thu Mar 17 17:12:10 2016 -0700
@@ -87,11 +87,12 @@
   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 @@
   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"));

Reply via email to