Skip to content

Commit 6b9492e

Browse files
committed
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 <cb@256bit.org>
1 parent 4e28631 commit 6b9492e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -704,6 +704,8 @@ static char *(features[]) =
704704

705705
static int included_patches[] =
706706
{ /* Add new patch number below this line */
707+
/**/
708+
2185,
707709
/**/
708710
2184,
709711
/**/

src/vim9instr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,9 +418,9 @@ generate_two_op(cctx_T *cctx, char_u *op)
418418
compare_isn_not_values(typval_T *tv, type_T *type)
419419
{
420420
if (tv != NULL)
421-
check_typval_is_value(tv);
421+
(void)check_typval_is_value(tv);
422422
else
423-
check_type_is_value(type);
423+
(void)check_type_is_value(type);
424424
return ISN_DROP;
425425
}
426426

0 commit comments

Comments
 (0)