Suppress unused-but-set-variable warning in ripper
`set_yylval_node` in ripper does not use the argument at all.
This commit is contained in:
parent
5b6167c252
commit
8b86d6f0c1
1
parse.y
1
parse.y
@ -9172,6 +9172,7 @@ set_number_literal(struct parser_params *p, enum yytokentype type, int suffix, i
|
|||||||
break;
|
break;
|
||||||
case tIMAGINARY:
|
case tIMAGINARY:
|
||||||
set_yylval_node(NEW_IMAGINARY(strdup(tok(p)), base, seen_point, numeric_type, &_cur_loc));
|
set_yylval_node(NEW_IMAGINARY(strdup(tok(p)), base, seen_point, numeric_type, &_cur_loc));
|
||||||
|
(void)numeric_type; /* for ripper */
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
rb_bug("unexpected token: %d", type);
|
rb_bug("unexpected token: %d", type);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user