From 416ead4cdaf849fe1f3dcda26d6ba04c80e36746 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh Date: Wed, 17 Jul 2019 08:24:25 +0900 Subject: compile.c: add NO_CHECK for the calls to COMPILE whose result is unused to suppress many warnings of Coverity Scan --- compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile.c b/compile.c index 62cfbbff3e..cf9c70f513 100644 --- a/compile.c +++ b/compile.c @@ -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; } -- cgit v1.2.3