diff options
author | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-08 00:45:23 +0000 |
---|---|---|
committer | yui-knk <yui-knk@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-08 00:45:23 +0000 |
commit | f8659dfd94d3f05f365996c68f2f1a78b1e7cbe3 (patch) | |
tree | e1973835187ebca69d0c15ce6f0d7affc947abde /parse.y | |
parent | c6b31b76eed937ff3a8f796d3106338bb3583da9 (diff) | |
download | ruby-f8659dfd94d3f05f365996c68f2f1a78b1e7cbe3.tar.gz |
parse.y Fix compile error
ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1453,10 +1453,11 @@ stmt : keyword_alias fitem {SET_LEX_STATE(EXPR_FNAME|EXPR_FITEM);} fitem | stmt modifier_rescue stmt { /*%%%*/ + NODE *resq; YYLTYPE location; location.first_loc = @2.first_loc; location.last_loc = @3.last_loc; - NODE *resq = new_resbody(0, remove_begin($3), 0, &location); + resq = new_resbody(0, remove_begin($3), 0, &location); $$ = new_rescue(remove_begin($1), resq, 0, &@$); /*% $$ = dispatch2(rescue_mod, $1, $3); |