0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -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

@@ -750,6 +750,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 */
/**/
2461,
/**/ /**/
2460, 2460,
/**/ /**/

View File

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