mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -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:
@@ -750,6 +750,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2461,
|
||||
/**/
|
||||
2460,
|
||||
/**/
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user