changeset 23839:23d6ead591c1 v8.2.2461

patch 8.2.2461: Coverity warns for unchecked return value Commit: https://github.com/vim/vim/commit/fef8064b54ad0b1a7ce2f9cf024526627e6bdf57 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Feb 3 20:01:19 2021 +0100 patch 8.2.2461: Coverity warns for unchecked return value Problem: Coverity warns for unchecked return value. Solution: Add "(void)" to avoid the warning.
author Bram Moolenaar <Bram@vim.org>
date Wed, 03 Feb 2021 20:15:03 +0100
parents 2127b82c86de
children 403b0fa5bd37
files src/version.c src/vim9execute.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2461,
+/**/
     2460,
 /**/
     2459,
--- 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;