0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.0393: Coverity warns for not using return value

Problem:    Coverity warns for not using return value.
Solution:   Add (void).
This commit is contained in:
Bram Moolenaar 2020-03-16 20:07:16 +01:00
parent 56cb337872
commit c030063329
2 changed files with 9 additions and 6 deletions

View File

@ -1071,12 +1071,13 @@ pum_set_event_info(dict_T *dict)
{
if (!pum_visible())
return;
dict_add_number(dict, "height", pum_height);
dict_add_number(dict, "width", pum_width);
dict_add_number(dict, "row", pum_row);
dict_add_number(dict, "col", pum_col);
dict_add_number(dict, "size", pum_size);
dict_add_bool(dict, "scrollbar", pum_scrollbar ? VVAL_TRUE : VVAL_FALSE);
(void)dict_add_number(dict, "height", pum_height);
(void)dict_add_number(dict, "width", pum_width);
(void)dict_add_number(dict, "row", pum_row);
(void)dict_add_number(dict, "col", pum_col);
(void)dict_add_number(dict, "size", pum_size);
(void)dict_add_bool(dict, "scrollbar",
pum_scrollbar ? VVAL_TRUE : VVAL_FALSE);
}
#endif

View File

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