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 -- [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/20230107105251.CD86E1C0471%40moolenaar.net.

Raspunde prin e-mail lui