mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.1085: 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:
parent
7d2ac92ebc
commit
6d90c61c5a
@ -989,16 +989,16 @@ yank_do_autocmd(oparg_T *oap, yankreg_T *reg)
|
|||||||
for (n = 0; n < reg->y_size; n++)
|
for (n = 0; n < reg->y_size; n++)
|
||||||
list_append_string(list, reg->y_array[n], -1);
|
list_append_string(list, reg->y_array[n], -1);
|
||||||
list->lv_lock = VAR_FIXED;
|
list->lv_lock = VAR_FIXED;
|
||||||
dict_add_list(v_event, "regcontents", list);
|
(void)dict_add_list(v_event, "regcontents", list);
|
||||||
|
|
||||||
buf[0] = (char_u)oap->regname;
|
buf[0] = (char_u)oap->regname;
|
||||||
buf[1] = NUL;
|
buf[1] = NUL;
|
||||||
dict_add_string(v_event, "regname", buf);
|
(void)dict_add_string(v_event, "regname", buf);
|
||||||
|
|
||||||
buf[0] = get_op_char(oap->op_type);
|
buf[0] = get_op_char(oap->op_type);
|
||||||
buf[1] = get_extra_op_char(oap->op_type);
|
buf[1] = get_extra_op_char(oap->op_type);
|
||||||
buf[2] = NUL;
|
buf[2] = NUL;
|
||||||
dict_add_string(v_event, "operator", buf);
|
(void)dict_add_string(v_event, "operator", buf);
|
||||||
|
|
||||||
buf[0] = NUL;
|
buf[0] = NUL;
|
||||||
buf[1] = NUL;
|
buf[1] = NUL;
|
||||||
@ -1011,9 +1011,9 @@ yank_do_autocmd(oparg_T *oap, yankreg_T *reg)
|
|||||||
reglen + 1);
|
reglen + 1);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
dict_add_string(v_event, "regtype", buf);
|
(void)dict_add_string(v_event, "regtype", buf);
|
||||||
|
|
||||||
dict_add_bool(v_event, "visual", oap->is_VIsual);
|
(void)dict_add_bool(v_event, "visual", oap->is_VIsual);
|
||||||
|
|
||||||
// Lock the dictionary and its keys
|
// Lock the dictionary and its keys
|
||||||
dict_set_items_ro(v_event);
|
dict_set_items_ro(v_event);
|
||||||
|
@ -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 */
|
||||||
|
/**/
|
||||||
|
1085,
|
||||||
/**/
|
/**/
|
||||||
1084,
|
1084,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user