From d9b6c6ed7a2208a4cf3c60f731e998d6a1cb0356 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 3 Sep 2017 00:39:23 +0000 Subject: string.c: suppress a warning * string.c (rb_str_enumerate_grapheme_clusters): suppress a maybe-uninitialized warning by old gcc. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string.c') diff --git a/string.c b/string.c index 021e0c2f42..45a4d0e00b 100644 --- a/string.c +++ b/string.c @@ -8090,7 +8090,7 @@ rb_str_enumerate_grapheme_clusters(VALUE str, int wantarray) 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); -- cgit v1.2.3