Skip to content

Commit

Permalink
compile.c: add NO_CHECK for the calls to COMPILE whose result is unused
Browse files Browse the repository at this point in the history
to suppress many warnings of Coverity Scan
  • Loading branch information
mame committed Jul 17, 2019
1 parent 0e23e0c commit 416ead4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compile.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 416ead4

Please sign in to comment.