diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-24 06:48:05 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-24 06:48:05 +0000 |
commit | 7cf664fbafaaed903f0036343735bc680bb2c71b (patch) | |
tree | c4591a6f4e56f95066be89ff6c2e1847d8b8a0d1 | |
parent | 02cf0326d3fa735c8f6215556043851fd855e765 (diff) | |
download | ruby-7cf664fbafaaed903f0036343735bc680bb2c71b.tar.gz ruby-7cf664fbafaaed903f0036343735bc680bb2c71b.tar.xz ruby-7cf664fbafaaed903f0036343735bc680bb2c71b.zip |
* parse.y (lambda): remove unused clause from the rule to stop
warning.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | parse.y | 10 |
2 files changed, 7 insertions, 8 deletions
@@ -1,3 +1,8 @@ +Sat Feb 24 15:41:51 2007 Yukihiro Matsumoto <matz@ruby-lang.org> + + * parse.y (lambda): remove unused clause from the rule to stop + warning. + Sat Feb 24 15:41:22 2007 Shugo Maeda <shugo@ruby-lang.org> * lib/thread.rb: do not redefine Mutex#synchronize. @@ -3217,21 +3217,15 @@ lambda : { %*/ } f_larglist - { - /*%%%*/ - $<num>$ = vtable_size(lvtbl->dvars); - /*% - %*/ - } lambda_body { /*%%%*/ $$ = $2; - $$->nd_body = block_append($$->nd_body, $4); + $$->nd_body = block_append($$->nd_body, $3); dyna_pop(); lpar_beg = $<num>1; /*% - $$ = dispatch2(lambda, $2, $4); + $$ = dispatch2(lambda, $2, $3); %*/ } ; |