diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-03 00:39:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-09-03 00:39:23 +0000 |
commit | d9b6c6ed7a2208a4cf3c60f731e998d6a1cb0356 (patch) | |
tree | dcaa071f1ed811684d1de15560c6822edb8e8d3f /string.c | |
parent | e84ac140a4b0a5c051392374de55345bcf9a13a2 (diff) | |
download | ruby-d9b6c6ed7a2208a4cf3c60f731e998d6a1cb0356.tar.gz |
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
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |