Skip to content

Commit fef8064

Browse files
committed
patch 8.2.2461: Coverity warns for unchecked return value
Problem: Coverity warns for unchecked return value. Solution: Add "(void)" to avoid the warning.
1 parent fc1dafa commit fef8064

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2461,
753755
/**/
754756
2460,
755757
/**/

src/vim9execute.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -897,11 +897,11 @@ allocate_if_null(typval_T *tv)
897897
{
898898
case VAR_LIST:
899899
if (tv->vval.v_list == NULL)
900-
rettv_list_alloc(tv);
900+
(void)rettv_list_alloc(tv);
901901
break;
902902
case VAR_DICT:
903903
if (tv->vval.v_dict == NULL)
904-
rettv_dict_alloc(tv);
904+
(void)rettv_dict_alloc(tv);
905905
break;
906906
default:
907907
break;

0 commit comments

Comments
 (0)