From: Bram Moolenaar Date: Wed, 3 Feb 2021 19:01:19 +0000 (+0100) Subject: patch 8.2.2461: Coverity warns for unchecked return value X-Git-Tag: v8.2.2461 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fef8064b54ad0b1a7ce2f9cf024526627e6bdf57;p=vim patch 8.2.2461: Coverity warns for unchecked return value Problem: Coverity warns for unchecked return value. Solution: Add "(void)" to avoid the warning. --- 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;