diff options
| author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-08-12 09:52:12 +0900 |
|---|---|---|
| committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-08-13 10:14:20 +0900 |
| commit | 69b5241c360aa180550538dba1c7bf0a6cc8cc22 (patch) | |
| tree | e97b7b39ab1b88465a43f4483cbe88a0ee642e38 /test/ruby/test_transcode.rb | |
| parent | 1f9e25cd027ea05311ca25aa9fc09cf935cb5040 (diff) | |
ruby_debug_log: suppress warning
Old gcc (< 5 maybe?) warns that this variable is not initialized:
debug.c: In function 'ruby_debug_log':
debug.c:441:13: warning: 'r' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (r && len < MAX_DEBUG_LOG_MESSAGE_LEN) {
^
I don't know if that is true, but adding "= 0" here must harm no one.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3411
Diffstat (limited to 'test/ruby/test_transcode.rb')
0 files changed, 0 insertions, 0 deletions
