summaryrefslogtreecommitdiff
path: root/regparse.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-13 08:58:05 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-13 08:58:05 +0000
commit2c1322ec88df93ac9ff280e6164d8cead12f30b8 (patch)
tree0a9b3dd315a774a85fb4dd3a4bbfe55751ff53fd /regparse.c
parent23838b93e8a4a9030ba28e5206f0f3e49cf59f6c (diff)
* 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
Diffstat (limited to 'regparse.c')
-rw-r--r--regparse.c2
1 files changed, 1 insertions, 1 deletions
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