mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
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>
This commit is contained in:
@@ -704,6 +704,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
2185,
|
||||||
/**/
|
/**/
|
||||||
2184,
|
2184,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -418,9 +418,9 @@ generate_two_op(cctx_T *cctx, char_u *op)
|
|||||||
compare_isn_not_values(typval_T *tv, type_T *type)
|
compare_isn_not_values(typval_T *tv, type_T *type)
|
||||||
{
|
{
|
||||||
if (tv != NULL)
|
if (tv != NULL)
|
||||||
check_typval_is_value(tv);
|
(void)check_typval_is_value(tv);
|
||||||
else
|
else
|
||||||
check_type_is_value(type);
|
(void)check_type_is_value(type);
|
||||||
return ISN_DROP;
|
return ISN_DROP;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user