summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
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 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);