# HG changeset patch # User Christian Brabandt # Date 1703413802 -3600 # Node ID 15d3f8eefaa3c349bb12b53e98921f8e9a75c064 # Parent 291b4ea552ebdccab891e02f0ff4727f3e20697f patch 9.0.2185: Coverity complains about not checking return value Commit: https://github.com/vim/vim/commit/6b9492e299c0b4ea76062160c4daf3985897f0b8 Author: Christian Brabandt Date: Sun Dec 24 11:14:37 2023 +0100 patch 9.0.2185: Coverity complains about not checking return value Problem: Coverity complains about not checking return value in compare_isn_not_values (after 9.0.2184) Solution: cast return value to "(void)" to make intention clear closes: #13751 Signed-off-by: Christian Brabandt diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -705,6 +705,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2185, +/**/ 2184, /**/ 2183, diff --git a/src/vim9instr.c b/src/vim9instr.c --- a/src/vim9instr.c +++ b/src/vim9instr.c @@ -418,9 +418,9 @@ generate_two_op(cctx_T *cctx, char_u *op compare_isn_not_values(typval_T *tv, type_T *type) { if (tv != NULL) - check_typval_is_value(tv); + (void)check_typval_is_value(tv); else - check_type_is_value(type); + (void)check_type_is_value(type); return ISN_DROP; }