From 2c1322ec88df93ac9ff280e6164d8cead12f30b8 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Wed, 13 Jun 2012 08:58:05 +0000 Subject: * 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 --- ChangeLog | 6 ++++++ regparse.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2ecf03c9d1..4bc8e9dc35 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Wed Jun 13 17:54:38 2012 URABE Shyouhei + + * 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 * configure.in: cygwin needs C99 for some stuff, e.g., diff --git a/regparse.c b/regparse.c index a207de39b0..149d857f8e 100644 --- a/regparse.c +++ b/regparse.c @@ -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 -- cgit v1.2.3