Supress warning that variable may be used uninitialized with ripper building
This commit is contained in:
parent
dd8372b3f3
commit
76ea8ecbf3
Notes:
git
2023-07-20 12:56:03 +00:00
2
parse.y
2
parse.y
@ -11335,7 +11335,7 @@ id_is_var(struct parser_params *p, ID id)
|
|||||||
static VALUE
|
static VALUE
|
||||||
new_regexp(struct parser_params *p, VALUE re, VALUE opt, const YYLTYPE *loc)
|
new_regexp(struct parser_params *p, VALUE re, VALUE opt, const YYLTYPE *loc)
|
||||||
{
|
{
|
||||||
VALUE src = 0, err;
|
VALUE src = 0, err = 0;
|
||||||
int options = 0;
|
int options = 0;
|
||||||
if (ripper_is_node_yylval(p, re)) {
|
if (ripper_is_node_yylval(p, re)) {
|
||||||
src = RNODE(re)->nd_cval;
|
src = RNODE(re)->nd_cval;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user