aboutsummaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 12:07:20 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-11-04 12:07:20 +0000
commita432b9a0a8b63c06de34e02ba4898974682e1f85 (patch)
treef1e81bc7381ea0f45e9bc6d1ee45a1d54989c572 /parse.y
parent7a2b3580d5df3a73b1d1637187316b6b1b98f51e (diff)
downloadruby-a432b9a0a8b63c06de34e02ba4898974682e1f85.tar.gz
parse.y: suppress warning in ripper
* parse.y (rb_discard_node_gen): rb_discard_node() is not used in ripper right now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60645 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index e6bb2956e2..e42763015d 100644
--- a/parse.y
+++ b/parse.y
@@ -349,12 +349,14 @@ static int parser_yyerror(struct parser_params*, const char*);
static enum yytokentype yylex(YYSTYPE*, YYLTYPE*, struct parser_params*);
+#ifndef RIPPER
static inline void
rb_discard_node_gen(struct parser_params *parser, NODE *n)
{
rb_ast_delete_node(parser->ast, n);
}
#define rb_discard_node(n) rb_discard_node_gen(parser, (n))
+#endif
static inline void
add_mark_object_gen(struct parser_params *parser, VALUE obj)