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:
@@ -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,
|
||||||
/**/
|
/**/
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user