ruby-changes:56587
From: Yusuke <ko1@a...>
Date: Wed, 17 Jul 2019 23:42:26 +0900 (JST)
Subject: [ruby-changes:56587] Yusuke Endoh: 416ead4cda (master): compile.c: add NO_CHECK for the calls to COMPILE whose result is unused
https://git.ruby-lang.org/ruby.git/commit/?id=416ead4cda From 416ead4cdaf849fe1f3dcda26d6ba04c80e36746 Mon Sep 17 00:00:00 2001 From: Yusuke Endoh <mame@r...> 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 diff --git a/compile.c b/compile.c index 62cfbbf..cf9c70f 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 https://github.com/ruby/ruby/blob/trunk/compile.c#L1650 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 v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/