mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (block_append): warn unused lteral.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
051eca3268
commit
5aadcd9349
2 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Mar 24 00:09:02 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
|
||||
|
||||
* parse.y (block_append): warn unused lteral.
|
||||
|
||||
Sun Mar 23 22:22:04 2003 WATANABE Hirofumi <eban@ruby-lang.org>
|
||||
|
||||
* lib/jcode.rb (tr!, delete!, szueeze!): add empty string checking.
|
||||
|
|
1
parse.y
1
parse.y
|
@ -4491,6 +4491,7 @@ block_append(head, tail)
|
|||
goto again;
|
||||
case NODE_LIT:
|
||||
case NODE_STR:
|
||||
rb_warning("unused literal ignored");
|
||||
return tail;
|
||||
default:
|
||||
end = NEW_BLOCK(head);
|
||||
|
|
Loading…
Reference in a new issue