summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorYusuke Endoh <mame@ruby-lang.org>2019-07-17 08:24:25 +0900
committerYusuke Endoh <mame@ruby-lang.org>2019-07-17 23:41:58 +0900
commit416ead4cdaf849fe1f3dcda26d6ba04c80e36746 (patch)
treedee1c3941c49e90bccdd0d4fa7cff7187cefc5c4 /compile.c
parent0e23e0c3a0c1053c230205117b82cc8156f3a26a (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.c2
1 files changed, 1 insertions, 1 deletions
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;
}