changeset 34013:15d3f8eefaa3 v9.0.2185

patch 9.0.2185: Coverity complains about not checking return value Commit: https://github.com/vim/vim/commit/6b9492e299c0b4ea76062160c4daf3985897f0b8 Author: Christian Brabandt <cb@256bit.org> 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 <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Sun, 24 Dec 2023 11:30:02 +0100
parents 291b4ea552eb
children 72d5d1effcc8
files src/version.c src/vim9instr.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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,
--- 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;
 }