mirror of
https://github.com/ruby/ruby.git
synced 2026-01-27 04:24:23 +00: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:
parent
0e23e0c3a0
commit
416ead4cda
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user