]> granicus.if.org Git - neomutt/commitdiff
build: fix a couple of build warnings
authorRichard Russon <rich@flatcap.org>
Mon, 24 Oct 2016 18:22:37 +0000 (19:22 +0100)
committerRichard Russon <rich@flatcap.org>
Mon, 24 Oct 2016 23:01:28 +0000 (00:01 +0100)
curs_lib.c
regex.c

index e8299592934ed4255418e368dc3db9d3aef53e01..c5d279305e4fb9014effbd648dc718af17d632af 100644 (file)
@@ -43,6 +43,9 @@
 #ifdef HAVE_LANGINFO_YESEXPR
 #include <langinfo.h>
 #endif
+#ifdef HAVE_ISWBLANK
+#include <wctype.h>
+#endif
 
 #ifdef USE_NOTMUCH
 #include "mutt_notmuch.h"
diff --git a/regex.c b/regex.c
index 40979af7412756e6dbf86d0613aae0e12d3071df..00f65b83c1eabe851fb6bb751673ad66539b25e8 100644 (file)
--- a/regex.c
+++ b/regex.c
@@ -4821,6 +4821,7 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
                actual values.  Otherwise, we will restore only one
                register from the stack, since lowest will == highest in
                `pop_failure_point'.  */
+#ifdef DEBUG
             active_reg_t dummy_low_reg, dummy_high_reg;
             unsigned char *pdummy;
             const char *sdummy;
@@ -4829,6 +4830,7 @@ re_match_2_internal (bufp, string1, size1, string2, size2, pos, regs, stop)
             POP_FAILURE_POINT (sdummy, pdummy,
                                dummy_low_reg, dummy_high_reg,
                                reg_dummy, reg_dummy, reg_info_dummy);
+#endif
           }
          /* Note fall through.  */