]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.2185: Coverity complains about not checking return value v9.0.2185
authorChristian Brabandt <cb@256bit.org>
Sun, 24 Dec 2023 10:14:37 +0000 (11:14 +0100)
committerChristian Brabandt <cb@256bit.org>
Sun, 24 Dec 2023 10:14:37 +0000 (11:14 +0100)
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>
src/version.c
src/vim9instr.c

index 396a16327f4eef2926e8b669f5e2e263705ff325..986b174389dba5b74f2e2385afc86d2de49a3e1d 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2185,
 /**/
     2184,
 /**/
index 5059eb0e627dab6bd4bb25554c08f9d8ad62d722..a2179f3ecc9421435d73d4be4c046d330fa10ac8 100644 (file)
@@ -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;
 }