mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
string.c: suppress warning
* string.c (str_undump): suppress maybe-uninitialized warning by gcc 7 and later. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d02f2996d2
commit
ae18c8f5b6
1 changed files with 1 additions and 1 deletions
2
string.c
2
string.c
|
@ -6277,7 +6277,7 @@ str_undump(VALUE str)
|
|||
const char *s = RSTRING_PTR(str);
|
||||
const char *s_end = RSTRING_END(str);
|
||||
long len = RSTRING_LEN(str);
|
||||
rb_encoding *enc = rb_enc_get(str), *forced_enc;
|
||||
rb_encoding *enc = rb_enc_get(str), *forced_enc = NULL;
|
||||
int n;
|
||||
unsigned int c;
|
||||
enum undump_source_format source_format;
|
||||
|
|
Loading…
Add table
Reference in a new issue