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
This commit is contained in:
parent
603a7bdc2f
commit
e92ca247d2
2
parse.y
2
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user