To: vim_dev@googlegroups.com Subject: Patch 9.0.1154 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 9.0.1154 Problem: Coverity warns for dead code. Solution: Remove condition that is always true. Files: src/vim9class.c *** ../vim-9.0.1153/src/vim9class.c 2023-01-06 18:59:04.355469628 +0000 --- src/vim9class.c 2023-01-07 10:49:43.460976216 +0000 *************** *** 681,688 **** garray_T lines_to_free; ga_init2(&lines_to_free, sizeof(char_u *), 50); ! ufunc_T *nf = define_function(&fea, NULL, &lines_to_free, ! is_class ? CF_CLASS : CF_INTERFACE); ga_clear_strings(&lines_to_free); vim_free(fga.ga_data); --- 681,687 ---- garray_T lines_to_free; ga_init2(&lines_to_free, sizeof(char_u *), 50); ! ufunc_T *nf = define_function(&fea, NULL, &lines_to_free, CF_CLASS); ga_clear_strings(&lines_to_free); vim_free(fga.ga_data); *** ../vim-9.0.1153/src/version.c 2023-01-06 18:59:04.359469626 +0000 --- src/version.c 2023-01-07 10:51:02.100839781 +0000 *************** *** 697,698 **** --- 697,700 ---- { /* Add new patch number below this line */ + /**/ + 1154, /**/ -- ARTHUR: Old woman! DENNIS: Man! ARTHUR: Man. I'm sorry. Old man, What knight live in that castle over there? DENNIS: I'm thirty-seven. "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/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///