summaryrefslogtreecommitdiffstats
path: root/parse.y
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-23 15:09:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-03-23 15:09:07 +0000
commit5fa84237b0235dbc2eb0ceae23c398c1332f1849 (patch)
treee87733e1baba188b7314b454410e9596b6b6ac7e /parse.y
parent1bb4c74fdb811bdf027efafc2d2805f6659eb6cd (diff)
downloadruby-5fa84237b0235dbc2eb0ceae23c398c1332f1849.tar.gz
ruby-5fa84237b0235dbc2eb0ceae23c398c1332f1849.tar.xz
ruby-5fa84237b0235dbc2eb0ceae23c398c1332f1849.zip
* parse.y (block_append): warn unused lteral.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index 5a75485a1..8096d5d57 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);