* regcomp.c, regexec.c: fix-up warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34684 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ca5a0db67b
commit
0ffc74dece
@ -50,6 +50,7 @@ onig_set_default_case_fold_flag(OnigCaseFoldType case_fold_flag)
|
|||||||
static unsigned char PadBuf[WORD_ALIGNMENT_SIZE];
|
static unsigned char PadBuf[WORD_ALIGNMENT_SIZE];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if 0
|
||||||
static UChar*
|
static UChar*
|
||||||
str_dup(UChar* s, UChar* end)
|
str_dup(UChar* s, UChar* end)
|
||||||
{
|
{
|
||||||
@ -64,6 +65,7 @@ str_dup(UChar* s, UChar* end)
|
|||||||
}
|
}
|
||||||
else return NULL;
|
else return NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static void
|
static void
|
||||||
swap_node(Node* a, Node* b)
|
swap_node(Node* a, Node* b)
|
||||||
|
@ -3885,8 +3885,8 @@ onig_search_gpos(regex_t* reg, const UChar* str, const UChar* end,
|
|||||||
ptrdiff_t r;
|
ptrdiff_t r;
|
||||||
UChar *s, *prev;
|
UChar *s, *prev;
|
||||||
OnigMatchArg msa;
|
OnigMatchArg msa;
|
||||||
const UChar *orig_start = start;
|
|
||||||
#ifdef USE_MATCH_RANGE_MUST_BE_INSIDE_OF_SPECIFIED_RANGE
|
#ifdef USE_MATCH_RANGE_MUST_BE_INSIDE_OF_SPECIFIED_RANGE
|
||||||
|
const UChar *orig_start = start;
|
||||||
const UChar *orig_range = range;
|
const UChar *orig_range = range;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user