From 4dae83ef1e5db267d9159edca449aea4f060b504 Mon Sep 17 00:00:00 2001 From: yugui Date: Fri, 5 Dec 2008 13:34:42 +0000 Subject: merges r20536 from trunk into ruby_1_9_1. * compile.c (iseq_set_sequence): uses rb_compile_warning() for warning at compilation time. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ compile.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c360a45e9..3fb0b9152 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Dec 5 12:38:48 2008 Nobuyoshi Nakada + + * compile.c (iseq_set_sequence): uses rb_compile_warning() for + warning at compilation time. + Fri Dec 5 12:35:46 2008 Nobuyoshi Nakada * compile.c (ruby_iseq_compile, ruby_iseq_translate_threaded_code), diff --git a/compile.c b/compile.c index 62021c890..7f3f53b45 100644 --- a/compile.c +++ b/compile.c @@ -1355,7 +1355,8 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor) rb_hash_aset(map, obj, INT2FIX(lobj->position - (pos+len))); } else { - rb_warning("duplicated when clause is ignored"); + rb_compile_warning(RSTRING_PTR(iseq->filename), iobj->line_no, + "duplicated when clause is ignored"); } } generated_iseq[pos + 1 + j] = map; -- cgit