0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.2461: Coverity warns for unchecked return value

Problem:    Coverity warns for unchecked return value.
Solution:   Add "(void)" to avoid the warning.
This commit is contained in:
Bram Moolenaar
2021-02-03 20:01:19 +01:00
parent fc1dafa91c
commit fef8064b54
2 changed files with 4 additions and 2 deletions

View File

@@ -897,11 +897,11 @@ allocate_if_null(typval_T *tv)
{
case VAR_LIST:
if (tv->vval.v_list == NULL)
rettv_list_alloc(tv);
(void)rettv_list_alloc(tv);
break;
case VAR_DICT:
if (tv->vval.v_dict == NULL)
rettv_dict_alloc(tv);
(void)rettv_dict_alloc(tv);
break;
default:
break;