diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-02 21:57:49 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-08-02 21:57:49 +0000 |
commit | ccd5c3ddfc69cd007aa807b1fe3c84f06438a01f (patch) | |
tree | df324b50f5d3304e83f352e74c63281ae4096f86 | |
parent | 2b9dbb3e40ccbc9ef47d75676618a134ac065a56 (diff) | |
download | ruby-ccd5c3ddfc69cd007aa807b1fe3c84f06438a01f.tar.gz |
* parse.y (value_expr_gen): now NODE_DEFN and NODE_DEFS are not void
value expressions. get rid of wrong warning with -w, and make to
pass tests with chkbuild. ref. [Feature #3753]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | parse.y | 5 |
2 files changed, 6 insertions, 5 deletions
@@ -1,3 +1,9 @@ +Sat Aug 3 06:55:29 2013 NAKAMURA Usaku <usa@ruby-lang.org> + + * parse.y (value_expr_gen): now NODE_DEFN and NODE_DEFS are not void + value expressions. get rid of wrong warning with -w, and make to + pass tests with chkbuild. ref. [Feature #3753] + Sat Aug 3 04:23:48 2013 Eric Hodel <drbrain@segment7.net> * doc/syntax/refinements.rdoc: Remove mention of instance_eval and @@ -8887,11 +8887,6 @@ value_expr_gen(struct parser_params *parser, NODE *node) } while (node) { switch (nd_type(node)) { - case NODE_DEFN: - case NODE_DEFS: - parser_warning(node, "void value expression"); - return FALSE; - case NODE_RETURN: case NODE_BREAK: case NODE_NEXT: |