summaryrefslogtreecommitdiff
path: root/regparse.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-05 10:08:07 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-12-05 10:08:07 (GMT)
commitc09f46301b20f7e86ff776fd8000d47c3f94c93f (patch)
tree5432d9824ccd1c4a5d2257e693a9134ea8f56809 /regparse.c
parent8bce84fe5dbb07260f33235f7ebb393ff140df72 (diff)
* regparse.c (PFETCH_READY): separate gcc specific trick.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'regparse.c')
-rw-r--r--regparse.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/regparse.c b/regparse.c
index 770b641..d38f6fb 100644
--- a/regparse.c
+++ b/regparse.c
@@ -258,7 +258,12 @@ strdup_with_null(OnigEncoding enc, UChar* s, UChar* end)
/* scan pattern methods */
#define PEND_VALUE 0
+#ifderf __GNUC__
+/* get rid of Wunused-but-set-variable */
#define PFETCH_READY UChar* pfetch_prev = pfetch_prev
+#else
+#define PFETCH_READY UChar* pfetch_prev
+#endif
#define PEND (p < end ? 0 : 1)
#define PUNFETCH p = pfetch_prev
#define PINC do { \