mirror of
https://github.com/vim/vim.git
synced 2025-10-01 04:54:07 -04:00
patch 8.2.1082: Coverity complains about ignoring dict_add() return value
Problem: Coverity complains about ignoring dict_add() return value. Solution: Add (void).
This commit is contained in:
@@ -6272,7 +6272,7 @@ f_getreginfo(typval_T *argvars, typval_T *rettv)
|
|||||||
list = (list_T *)get_reg_contents(regname, GREG_EXPR_SRC | GREG_LIST);
|
list = (list_T *)get_reg_contents(regname, GREG_EXPR_SRC | GREG_LIST);
|
||||||
if (list == NULL)
|
if (list == NULL)
|
||||||
return;
|
return;
|
||||||
dict_add_list(dict, "regcontents", list);
|
(void)dict_add_list(dict, "regcontents", list);
|
||||||
|
|
||||||
buf[0] = NUL;
|
buf[0] = NUL;
|
||||||
buf[1] = NUL;
|
buf[1] = NUL;
|
||||||
@@ -6285,12 +6285,12 @@ f_getreginfo(typval_T *argvars, typval_T *rettv)
|
|||||||
reglen + 1);
|
reglen + 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
dict_add_string(dict, (char *)"regtype", buf);
|
(void)dict_add_string(dict, (char *)"regtype", buf);
|
||||||
|
|
||||||
buf[0] = get_register_name(get_unname_register());
|
buf[0] = get_register_name(get_unname_register());
|
||||||
buf[1] = NUL;
|
buf[1] = NUL;
|
||||||
if (regname == '"')
|
if (regname == '"')
|
||||||
dict_add_string(dict, (char *)"points_to", buf);
|
(void)dict_add_string(dict, (char *)"points_to", buf);
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
dictitem_T *item = dictitem_alloc((char_u *)"isunnamed");
|
dictitem_T *item = dictitem_alloc((char_u *)"isunnamed");
|
||||||
@@ -6300,7 +6300,7 @@ f_getreginfo(typval_T *argvars, typval_T *rettv)
|
|||||||
item->di_tv.v_type = VAR_SPECIAL;
|
item->di_tv.v_type = VAR_SPECIAL;
|
||||||
item->di_tv.vval.v_number = regname == buf[0]
|
item->di_tv.vval.v_number = regname == buf[0]
|
||||||
? VVAL_TRUE : VVAL_FALSE;
|
? VVAL_TRUE : VVAL_FALSE;
|
||||||
dict_add(dict, item);
|
(void)dict_add(dict, item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -754,6 +754,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 */
|
||||||
|
/**/
|
||||||
|
1082,
|
||||||
/**/
|
/**/
|
||||||
1081,
|
1081,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user