ruby-changes:47823
From: nobu <ko1@a...>
Date: Sun, 17 Sep 2017 14:51:20 +0900 (JST)
Subject: [ruby-changes:47823] nobu:r59941 (trunk): suppress warnings
nobu 2017-09-17 14:51:15 +0900 (Sun, 17 Sep 2017) New Revision: 59941 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59941 Log: suppress warnings * compile.c: suppress maybe-uninitialized warnings by gcc7. Modified files: trunk/compile.c Index: compile.c =================================================================== --- compile.c (revision 59940) +++ compile.c (revision 59941) @@ -4216,7 +4216,7 @@ compile_if(rb_iseq_t *iseq, LINK_ANCHOR https://github.com/ruby/ruby/blob/trunk/compile.c#L4216 DECL_ANCHOR(then_seq); DECL_ANCHOR(else_seq); LABEL *then_label, *else_label, *end_label; - VALUE branches; + VALUE branches = 0; INIT_ANCHOR(cond_seq); INIT_ANCHOR(then_seq); @@ -4274,7 +4274,7 @@ compile_case(rb_iseq_t *iseq, LINK_ANCHO https://github.com/ruby/ruby/blob/trunk/compile.c#L4274 VALUE literals = rb_hash_new(); int line; enum node_type type; - VALUE branches; + VALUE branches = 0; INIT_ANCHOR(head); INIT_ANCHOR(body_seq); @@ -4385,7 +4385,7 @@ compile_when(rb_iseq_t *iseq, LINK_ANCHO https://github.com/ruby/ruby/blob/trunk/compile.c#L4385 NODE *orig_node = node; LABEL *endlabel; DECL_ANCHOR(body_seq); - VALUE branches; + VALUE branches = 0; DECL_BRANCH_BASE(branches, nd_line(node), "case"); @@ -4445,7 +4445,7 @@ compile_loop(rb_iseq_t *iseq, LINK_ANCHO https://github.com/ruby/ruby/blob/trunk/compile.c#L4445 LABEL *prev_end_label = ISEQ_COMPILE_DATA(iseq)->end_label; LABEL *prev_redo_label = ISEQ_COMPILE_DATA(iseq)->redo_label; int prev_loopval_popped = ISEQ_COMPILE_DATA(iseq)->loopval_popped; - VALUE branches; + VALUE branches = 0; struct iseq_compile_data_ensure_node_stack enl; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/