diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2019-07-16 07:18:54 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2019-07-16 07:18:54 +0900 |
commit | c184a1c261209da403db553eef7f7353f7ee5edd (patch) | |
tree | b028c1577a49505681adab4215764f43d0175bde /compile.c | |
parent | 6aab77a7a3e29a82006878f87e24ed30fa985a1f (diff) |
compile.c: add NO_CHECK for the calls to COMPILE whose result is unused
to suppress many warnings of Coverity Scan
Diffstat (limited to 'compile.c')
-rw-r--r-- | compile.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1710,7 +1710,7 @@ iseq_set_arguments(rb_iseq_t *iseq, LINK_ANCHOR *const optargs, const NODE *cons body->param.size = arg_size; if (args->pre_init) { /* m_init */ - COMPILE_POPPED(optargs, "init arguments (m)", args->pre_init); + NO_CHECK(COMPILE_POPPED(optargs, "init arguments (m)", args->pre_init)); } if (args->post_init) { /* p_init */ NO_CHECK(COMPILE_POPPED(optargs, "init arguments (p)", args->post_init)); @@ -3961,7 +3961,7 @@ compile_array(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE *const node_ro opt_p = 0; } - COMPILE_(anchor, "array element", node->nd_head, popped); + NO_CHECK(COMPILE_(anchor, "array element", node->nd_head, popped)); } if (opt_p) { @@ -4931,7 +4931,7 @@ compile_named_capture_assign(rb_iseq_t *iseq, LINK_ANCHOR *const ret, const NODE ADD_INSN(ret, line, pop); for (vars = node; vars; vars = vars->nd_next) { last = ret->last; - COMPILE_POPPED(ret, "capture", vars->nd_head); + NO_CHECK(COMPILE_POPPED(ret, "capture", vars->nd_head)); last = last->next; /* putobject :var */ ((INSN*)last)->insn_id = BIN(putnil); ((INSN*)last)->operand_size = 0; |