* 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:
nobu 2003-03-23 15:09:07 +00:00
parent 051eca3268
commit 5aadcd9349
2 changed files with 5 additions and 0 deletions

View File

@ -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.

View File

@ -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);