aboutsummaryrefslogtreecommitdiffstats
path: root/string.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-03 00:39:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-09-03 00:39:23 +0000
commitd9b6c6ed7a2208a4cf3c60f731e998d6a1cb0356 (patch)
treedcaa071f1ed811684d1de15560c6822edb8e8d3f /string.c
parente84ac140a4b0a5c051392374de55345bcf9a13a2 (diff)
downloadruby-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.c2
1 files changed, 1 insertions, 1 deletions
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);