зеркало из https://github.com/github/ruby.git
Suppress -Wmaybe-uninitialized warnings with LTO
This commit is contained in:
Родитель
1eb651fb50
Коммит
a720a1c447
|
@ -481,7 +481,7 @@ rb_getaddrinfo(const char *hostp, const char *portp, const struct addrinfo *hint
|
|||
{
|
||||
int retry;
|
||||
struct getaddrinfo_arg *arg;
|
||||
int err, gai_errno = 0;
|
||||
int err = 0, gai_errno = 0;
|
||||
|
||||
start:
|
||||
retry = 0;
|
||||
|
|
|
@ -992,7 +992,7 @@ pm_compile_conditional(rb_iseq_t *iseq, const pm_line_column_t *line_column, pm_
|
|||
pm_compile_branch_condition(iseq, cond_seq, predicate, then_label, else_label, false, scope_node);
|
||||
PUSH_SEQ(ret, cond_seq);
|
||||
|
||||
rb_code_location_t conditional_location;
|
||||
rb_code_location_t conditional_location = { 0 };
|
||||
VALUE branches = Qfalse;
|
||||
|
||||
if (then_label->refcnt && else_label->refcnt && PM_BRANCH_COVERAGE_P(iseq)) {
|
||||
|
@ -6140,7 +6140,7 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret,
|
|||
|
||||
// We're going to use this to uniquely identify each branch so that we
|
||||
// can track coverage information.
|
||||
rb_code_location_t case_location;
|
||||
rb_code_location_t case_location = { 0 };
|
||||
VALUE branches = Qfalse;
|
||||
int branch_id = 0;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче