Patch 9.0.1241
Problem:    Coverity warns for not checking function return value.
Solution:   Explicitly ignore the return value.
Files:      src/userfunc.c


*** ../vim-9.0.1240/src/userfunc.c      2023-01-09 11:35:43.545536531 +0000
--- src/userfunc.c      2023-01-25 12:25:36.702532598 +0000
***************
*** 192,198 ****
                && *eap->cmdlinep == ((char_u **)lines_to_free->ga_data)
                                                   [lines_to_free->ga_len - 1])
            *eap->cmdlinep = theline;
!       ga_add_string(lines_to_free, theline);
      }
  
      return theline;
--- 192,198 ----
                && *eap->cmdlinep == ((char_u **)lines_to_free->ga_data)
                                                   [lines_to_free->ga_len - 1])
            *eap->cmdlinep = theline;
!       (void)ga_add_string(lines_to_free, theline);
      }
  
      return theline;
*** ../vim-9.0.1240/src/version.c       2023-01-24 15:07:00.428562536 +0000
--- src/version.c       2023-01-25 12:26:49.538502115 +0000
***************
*** 697,698 ****
--- 697,700 ----
  {   /* Add new patch number below this line */
+ /**/
+     1241,
  /**/

-- 
Microsoft is to software what McDonalds is to gourmet cooking

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            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/20230125122741.AEF261C065A%40moolenaar.net.

Raspunde prin e-mail lui