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:
Nobuyoshi Nakada 2024-01-08 01:22:11 +09:00
parent 5b6167c252
commit 8b86d6f0c1
No known key found for this signature in database
GPG Key ID: 3582D74E1FEE4465

View File

@ -9172,6 +9172,7 @@ set_number_literal(struct parser_params *p, enum yytokentype type, int suffix, i
break;
case tIMAGINARY:
set_yylval_node(NEW_IMAGINARY(strdup(tok(p)), base, seen_point, numeric_type, &_cur_loc));
(void)numeric_type; /* for ripper */
break;
default:
rb_bug("unexpected token: %d", type);