From 5aadcd934937f0898fdd3d9bbec3550f65598b98 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 23 Mar 2003 15:09:07 +0000 Subject: [PATCH] * parse.y (block_append): warn unused lteral. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ parse.y | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index c0ebd52b65..654e38d27c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Mon Mar 24 00:09:02 2003 Nobuyoshi Nakada + + * parse.y (block_append): warn unused lteral. + Sun Mar 23 22:22:04 2003 WATANABE Hirofumi * lib/jcode.rb (tr!, delete!, szueeze!): add empty string checking. diff --git a/parse.y b/parse.y index 5a75485a1b..8096d5d576 100644 --- a/parse.y +++ b/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);