ruby-changes:22635
From: nobu <ko1@a...>
Date: Sun, 19 Feb 2012 00:42:09 +0900 (JST)
Subject: [ruby-changes:22635] nobu:r34684 (trunk): * regcomp.c, regexec.c: fix-up warnings.
nobu 2012-02-19 00:41:59 +0900 (Sun, 19 Feb 2012) New Revision: 34684 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34684 Log: * regcomp.c, regexec.c: fix-up warnings. Modified files: trunk/regcomp.c trunk/regexec.c Index: regcomp.c =================================================================== --- regcomp.c (revision 34683) +++ regcomp.c (revision 34684) @@ -50,6 +50,7 @@ static unsigned char PadBuf[WORD_ALIGNMENT_SIZE]; #endif +#if 0 static UChar* str_dup(UChar* s, UChar* end) { @@ -64,6 +65,7 @@ } else return NULL; } +#endif static void swap_node(Node* a, Node* b) Index: regexec.c =================================================================== --- regexec.c (revision 34683) +++ regexec.c (revision 34684) @@ -3885,8 +3885,8 @@ ptrdiff_t r; UChar *s, *prev; OnigMatchArg msa; +#ifdef USE_MATCH_RANGE_MUST_BE_INSIDE_OF_SPECIFIED_RANGE const UChar *orig_start = start; -#ifdef USE_MATCH_RANGE_MUST_BE_INSIDE_OF_SPECIFIED_RANGE const UChar *orig_range = range; #endif -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/