Suppress -Wmaybe-uninitialized warnings with LTO

This commit is contained in:
Nobuyoshi Nakada 2024-06-01 16:22:31 +09:00
Родитель 1eb651fb50
Коммит a720a1c447
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 3582D74E1FEE4465
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -481,7 +481,7 @@ rb_getaddrinfo(const char *hostp, const char *portp, const struct addrinfo *hint
{ {
int retry; int retry;
struct getaddrinfo_arg *arg; struct getaddrinfo_arg *arg;
int err, gai_errno = 0; int err = 0, gai_errno = 0;
start: start:
retry = 0; 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); pm_compile_branch_condition(iseq, cond_seq, predicate, then_label, else_label, false, scope_node);
PUSH_SEQ(ret, cond_seq); PUSH_SEQ(ret, cond_seq);
rb_code_location_t conditional_location; rb_code_location_t conditional_location = { 0 };
VALUE branches = Qfalse; VALUE branches = Qfalse;
if (then_label->refcnt && else_label->refcnt && PM_BRANCH_COVERAGE_P(iseq)) { 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 // We're going to use this to uniquely identify each branch so that we
// can track coverage information. // can track coverage information.
rb_code_location_t case_location; rb_code_location_t case_location = { 0 };
VALUE branches = Qfalse; VALUE branches = Qfalse;
int branch_id = 0; int branch_id = 0;