1
0
forked from aniani/vim

patch 7.4.1761

Problem:    Coverity complains about ignoring return value.
Solution:   Add "(void)" to get rid of the warning.
This commit is contained in:
Bram Moolenaar 2016-04-21 08:56:12 +02:00
parent aa3b15dbeb
commit 8ed43916db
2 changed files with 3 additions and 1 deletions

View File

@ -13178,7 +13178,7 @@ f_getreg(typval_T *argvars, typval_T *rettv)
rettv->vval.v_list = (list_T *)get_reg_contents(regname,
(arg2 ? GREG_EXPR_SRC : 0) | GREG_LIST);
if (rettv->vval.v_list == NULL)
rettv_list_alloc(rettv);
(void)rettv_list_alloc(rettv);
else
++rettv->vval.v_list->lv_refcount;
}

View File

@ -748,6 +748,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1761,
/**/
1760,
/**/