diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-04 12:07:20 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-04 12:07:20 +0000 |
commit | e92ca247d2a32b6779d008ceeebfc2faf58e4e6c (patch) | |
tree | f1e81bc7381ea0f45e9bc6d1ee45a1d54989c572 /parse.y | |
parent | 603a7bdc2f497ce6db97fadaaf29ab89c2cb6e60 (diff) | |
download | ruby-e92ca247d2a32b6779d008ceeebfc2faf58e4e6c.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.y | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |