From: ts Date: 2003-11-12T20:02:33+09:00 Subject: Re: problems with rb_str_split() >>>>> "I" == Ian Macdonald writes: I> This worked fine in Ruby 1.6.x, but in 1.8.x, it generates a warning in I> any code that invokes the method: Well, I don't have this problem with 1.8.1 nasun% cat aa.c #include void Init_aa() { VALUE res; const char *comma_sp = ", "; int i; res = rb_str_split(rb_str_new2("abc, def"), ", "); for (i = 0; i < RARRAY(res)->len; i++) { rb_warn("found %s", StringValuePtr(RARRAY(res)->ptr[i])); } } nasun% nasun% ruby -raa -ve 1 ruby 1.8.1 (2003-10-31) [sparc-solaris2.8] ./aa.so: warning: found abc ./aa.so: warning: found def -e:1: warning: useless use of a literal in void context nasun% Guy Decoux