1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* regparse.c (PFETCH_READY): this line was to suppress warning,

but  did emit  warnings if  -Wuninitialized was  set.  Assigning
	  NULL instead if pfetch_prev should suffice the situation.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
shyouhei 2012-06-13 08:58:05 +00:00
parent 23838b93e8
commit 2c1322ec88
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Wed Jun 13 17:54:38 2012 URABE Shyouhei <shyouhei@ruby-lang.org>
* regparse.c (PFETCH_READY): this line was to suppress warning,
but did emit warnings if -Wuninitialized was set. Assigning
NULL instead if pfetch_prev should suffice the situation.
Wed Jun 13 17:51:05 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* configure.in: cygwin needs C99 for some stuff, e.g.,

View file

@ -265,7 +265,7 @@ strdup_with_null(OnigEncoding enc, UChar* s, UChar* end)
#ifdef __GNUC__
/* get rid of Wunused-but-set-variable */
#define PFETCH_READY UChar* pfetch_prev = pfetch_prev
#define PFETCH_READY UChar* pfetch_prev = NULL
#else
#define PFETCH_READY UChar* pfetch_prev
#endif