From fef8064b54ad0b1a7ce2f9cf024526627e6bdf57 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 3 Feb 2021 20:01:19 +0100 Subject: [PATCH] patch 8.2.2461: Coverity warns for unchecked return value Problem: Coverity warns for unchecked return value. Solution: Add "(void)" to avoid the warning. --- src/version.c | 2 ++ src/vim9execute.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/version.c b/src/version.c index f6fbc8a45..522eaa80d 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2461, /**/ 2460, /**/ diff --git a/src/vim9execute.c b/src/vim9execute.c index 8a5708cc3..8728088c0 100644 --- a/src/vim9execute.c +++ b/src/vim9execute.c @@ -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; -- 2.40.0