ruby-changes:47614
From: nobu <ko1@a...>
Date: Sun, 3 Sep 2017 09:39:28 +0900 (JST)
Subject: [ruby-changes:47614] nobu:r59730 (trunk): string.c: suppress a warning
nobu 2017-09-03 09:39:23 +0900 (Sun, 03 Sep 2017) New Revision: 59730 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59730 Log: string.c: suppress a warning * string.c (rb_str_enumerate_grapheme_clusters): suppress a maybe-uninitialized warning by old gcc. Modified files: trunk/string.c Index: string.c =================================================================== --- string.c (revision 59729) +++ string.c (revision 59730) @@ -8090,7 +8090,7 @@ rb_str_enumerate_grapheme_clusters(VALUE https://github.com/ruby/ruby/blob/trunk/string.c#L8090 rb_encoding *enc = rb_enc_from_index(encidx); int unicode_p = rb_enc_unicode_p(enc); const char *ptr, *end; - VALUE ary; + VALUE MAYBE_UNUSED(ary); if (!unicode_p) { return rb_str_enumerate_codepoints(str, wantarray); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/