patch 9.0.2185: Coverity complains about not checking return value
Commit:
https://github.com/vim/vim/commit/6b9492e299c0b4ea76062160c4daf3985897f0b8
Author: Christian Brabandt <[email protected]>
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 <[email protected]>
diff --git a/src/version.c b/src/version.c
index 396a16327..986b17438 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2185,
/**/
2184,
/**/
diff --git a/src/vim9instr.c b/src/vim9instr.c
index 5059eb0e6..a2179f3ec 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;
}
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1rHLkA-00BGsI-Jv%40256bit.org.