To: vim_dev@googlegroups.com Subject: Patch 8.2.2461 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2461 Problem: Coverity warns for unchecked return value. Solution: Add "(void)" to avoid the warning. Files: src/vim9execute.c *** ../vim-8.2.2460/src/vim9execute.c 2021-01-31 13:08:16.164367438 +0100 --- src/vim9execute.c 2021-02-03 20:00:23.525712853 +0100 *************** *** 897,907 **** { case VAR_LIST: if (tv->vval.v_list == NULL) ! rettv_list_alloc(tv); break; case VAR_DICT: if (tv->vval.v_dict == NULL) ! rettv_dict_alloc(tv); break; default: break; --- 897,907 ---- { case VAR_LIST: if (tv->vval.v_list == NULL) ! (void)rettv_list_alloc(tv); break; case VAR_DICT: if (tv->vval.v_dict == NULL) ! (void)rettv_dict_alloc(tv); break; default: break; *** ../vim-8.2.2460/src/version.c 2021-02-03 19:56:56.538375336 +0100 --- src/version.c 2021-02-03 20:01:00.257595246 +0100 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2461, /**/ -- TALL KNIGHT: We shall say Ni! again to you if you do not appease us. ARTHUR: All right! What do you want? TALL KNIGHT: We want ... a shrubbery! "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///