diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-14 07:52:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-02-14 07:52:30 +0000 |
commit | 7b26b54336fe3a4e3b75a0dfd3197b487311f318 (patch) | |
tree | 76d1c284ee316248bbe06be55ba9db9e7c93bdbd /string.c | |
parent | 833c048d8c145bc5a2eb1da89f26eae9a45139fb (diff) | |
download | ruby-7b26b54336fe3a4e3b75a0dfd3197b487311f318.tar.gz |
initialize variables
* string.c (rb_str_enumerate_lines): initialize conditionally
used variable.
* thread.c (rb_fd_no_init): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'string.c')
-rw-r--r-- | string.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -7493,8 +7493,7 @@ rb_str_enumerate_lines(int argc, VALUE *argv, VALUE str, int wantarray) const char *ptr, *pend, *subptr, *subend, *rsptr, *hit, *adjusted; long pos, len, rslen; int rsnewline = 0; - - VALUE MAYBE_UNUSED(ary); + VALUE ary = 0; if (rb_scan_args(argc, argv, "01:", &rs, &opts) == 0) rs = rb_rs; @@ -7517,9 +7516,6 @@ rb_str_enumerate_lines(int argc, VALUE *argv, VALUE str, int wantarray) wantarray = 0; #endif } -#if defined __GNUC__ && !defined __clang__ - ASSUME(wantarray || !ary); /* if wantarray, ary does not matter */ -#endif } else { if (wantarray) |