To: vim_dev@googlegroups.com Subject: Patch 9.0.1241 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ 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 -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///