diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-05 03:38:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-05 03:38:50 +0000 |
commit | 1b4cdf00727bd47762fd096d2a1008b853735161 (patch) | |
tree | f871ece26e431cbeb17dc7673a43f2171ef7b176 | |
parent | 09fec9e0fcdf3c54492e79f2b16f6fec4d2551c1 (diff) | |
download | ruby-1b4cdf00727bd47762fd096d2a1008b853735161.tar.gz ruby-1b4cdf00727bd47762fd096d2a1008b853735161.tar.xz ruby-1b4cdf00727bd47762fd096d2a1008b853735161.zip |
* compile.c (iseq_set_sequence): uses rb_compile_warning() for
warning at compilation time.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | compile.c | 3 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Fri Dec 5 12:38:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * compile.c (iseq_set_sequence): uses rb_compile_warning() for + warning at compilation time. + Fri Dec 5 12:35:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * compile.c (ruby_iseq_compile, ruby_iseq_translate_threaded_code), @@ -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; |