From: Richard Russon Date: Fri, 18 Mar 2016 00:12:10 +0000 (-0700) Subject: Fix three build warnings when DEBUG isn't defined. X-Git-Tag: neomutt-20160404~51 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=950cbaacfbf3d0f07c466621f05383e64f2dc60e;p=neomutt Fix three build warnings when DEBUG isn't defined. --- diff --git a/hcache.c b/hcache.c index 9f3157df0..f4c0ecf41 100644 --- 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); diff --git a/imap/auth_gss.c b/imap/auth_gss.c index ab21fd364..39786c4f1 100644 --- a/imap/auth_gss.c +++ b/imap/auth_gss.c @@ -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"));