1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

compile.c: add NO_CHECK for the calls to COMPILE whose result is unused

to suppress many warnings of Coverity Scan
This commit is contained in:
Yusuke Endoh 2019-07-17 08:24:25 +09:00
parent 0e23e0c3a0
commit 416ead4cda

View file

@ -1650,7 +1650,7 @@ iseq_set_arguments(rb_iseq_t *iseq, LINK_ANCHOR *const optargs, const NODE *cons
label = NEW_LABEL(nd_line(node));
rb_ary_push(labels, (VALUE)label | 1);
ADD_LABEL(optargs, label);
COMPILE_POPPED(optargs, "optarg", node->nd_body);
NO_CHECK(COMPILE_POPPED(optargs, "optarg", node->nd_body));
node = node->nd_next;
i += 1;
}