aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--regcomp.c2
-rw-r--r--regexec.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/regcomp.c b/regcomp.c
index afb8e1cdc4..c12471ca8c 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -50,6 +50,7 @@ onig_set_default_case_fold_flag(OnigCaseFoldType case_fold_flag)
static unsigned char PadBuf[WORD_ALIGNMENT_SIZE];
#endif
+#if 0
static UChar*
str_dup(UChar* s, UChar* end)
{
@@ -64,6 +65,7 @@ str_dup(UChar* s, UChar* end)
}
else return NULL;
}
+#endif
static void
swap_node(Node* a, Node* b)
diff --git a/regexec.c b/regexec.c
index 2c16dafda5..2587cd9397 100644
--- a/regexec.c
+++ b/regexec.c
@@ -3885,8 +3885,8 @@ onig_search_gpos(regex_t* reg, const UChar* str, const UChar* end,
ptrdiff_t r;
UChar *s, *prev;
OnigMatchArg msa;
- const UChar *orig_start = start;
#ifdef USE_MATCH_RANGE_MUST_BE_INSIDE_OF_SPECIFIED_RANGE
+ const UChar *orig_start = start;
const UChar *orig_range = range;
#endif