ruby-changes:49172
From: nobu <ko1@a...>
Date: Sat, 16 Dec 2017 09:03:55 +0900 (JST)
Subject: [ruby-changes:49172] nobu:r61289 (trunk): string.c: suppress warning
nobu 2017-12-16 09:03:51 +0900 (Sat, 16 Dec 2017) New Revision: 61289 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61289 Log: string.c: suppress warning * string.c (str_undump): suppress maybe-uninitialized warning by gcc 7 and later. Modified files: trunk/string.c Index: string.c =================================================================== --- string.c (revision 61288) +++ string.c (revision 61289) @@ -6277,7 +6277,7 @@ str_undump(VALUE str) https://github.com/ruby/ruby/blob/trunk/string.c#L6277 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; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/