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 -- [email protected] -- 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    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/202102031901.113J1o5K1845881%40masaka.moolenaar.net.

Raspunde prin e-mail lui