summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Brabandt <cb@256bit.org>2023-12-24 11:14:37 +0100
committerChristian Brabandt <cb@256bit.org>2023-12-24 11:14:37 +0100
commit6b9492e299c0b4ea76062160c4daf3985897f0b8 (patch)
tree9bc0fc223ad18b8d1c67f4ab22011aa60f14201d
parent4e28631f9127a79fad564c0e870ce4988922b5e2 (diff)
patch 9.0.2185: Coverity complains about not checking return valuev9.0.2185
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>
-rw-r--r--src/version.c2
-rw-r--r--src/vim9instr.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/version.c b/src/version.c
index 396a16327f..986b174389 100644
--- 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
index 5059eb0e62..a2179f3ecc 100644
--- 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;
}