ruby-changes:9000
From: nobu <ko1@a...>
Date: Fri, 5 Dec 2008 12:39:07 +0900 (JST)
Subject: [ruby-changes:9000] Ruby:r20536 (trunk): * compile.c (iseq_set_sequence): uses rb_compile_warning() for
nobu 2008-12-05 12:38:50 +0900 (Fri, 05 Dec 2008) New Revision: 20536 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=20536 Log: * compile.c (iseq_set_sequence): uses rb_compile_warning() for warning at compilation time. Modified files: trunk/ChangeLog trunk/compile.c Index: ChangeLog =================================================================== --- ChangeLog (revision 20535) +++ ChangeLog (revision 20536) @@ -1,3 +1,8 @@ +Fri Dec 5 12:38:48 2008 Nobuyoshi Nakada <nobu@r...> + + * compile.c (iseq_set_sequence): uses rb_compile_warning() for + warning at compilation time. + Fri Dec 5 12:35:46 2008 Nobuyoshi Nakada <nobu@r...> * compile.c (ruby_iseq_compile, ruby_iseq_translate_threaded_code), Index: compile.c =================================================================== --- compile.c (revision 20535) +++ compile.c (revision 20536) @@ -1355,7 +1355,8 @@ 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/