diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-29 23:26:31 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2019-03-29 23:26:31 +0000 |
commit | 9249346c0bed3fa154a49b2ca924c205e66018ef (patch) | |
tree | 23720c0ec441baa62afb0aa1afd5171c804bbc23 /mjit_worker.c | |
parent | 9d047fd3e51945c8fcc3a8a97c41dc2baf016974 (diff) |
mjit_worker.c: explicitly ignore the unused result of RB_DEBUG_COUNTER_INC_IF
By adding `(void)`. This makes Coverity Scan happy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'mjit_worker.c')
-rw-r--r-- | mjit_worker.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mjit_worker.c b/mjit_worker.c index c651809ac5..a85e7e8eae 100644 --- a/mjit_worker.c +++ b/mjit_worker.c @@ -327,9 +327,9 @@ mjit_warning(const char *format, ...) static void add_to_list(struct rb_mjit_unit *unit, struct rb_mjit_unit_list *list) { - RB_DEBUG_COUNTER_INC_IF(mjit_length_unit_queue, list == &unit_queue); - RB_DEBUG_COUNTER_INC_IF(mjit_length_active_units, list == &active_units); - RB_DEBUG_COUNTER_INC_IF(mjit_length_compact_units, list == &compact_units); + (void)RB_DEBUG_COUNTER_INC_IF(mjit_length_unit_queue, list == &unit_queue); + (void)RB_DEBUG_COUNTER_INC_IF(mjit_length_active_units, list == &active_units); + (void)RB_DEBUG_COUNTER_INC_IF(mjit_length_compact_units, list == &compact_units); list_add_tail(&list->head, &unit->unode); list->length++; @@ -1241,7 +1241,7 @@ mjit_worker(void) if (unit) { // JIT compile mjit_func_t func = convert_unit_to_func(unit); - RB_DEBUG_COUNTER_INC_IF(mjit_compile_failures, func == (mjit_func_t)NOT_COMPILED_JIT_ISEQ_FUNC); + (void)RB_DEBUG_COUNTER_INC_IF(mjit_compile_failures, func == (mjit_func_t)NOT_COMPILED_JIT_ISEQ_FUNC); // `mjit_copy_cache_from_main_thread` in `mjit_compile` may wait for a long time // and worker may be stopped during the compilation. |