Hi Christian, On Sat, Sep 16, 2023 at 4:20 AM Christian Brabandt < vim-dev-git...@256bit.org> wrote:
> Coverity complains about this part here: > I have opened the PR https://github.com/vim/vim/pull/13103 to fix this. Regards, Yegappan > *** CID 1544700: Control flow issues (DEADCODE) > /src/vim9class.c: 1114 in add_classfuncs_objmethods() > 1108 if (loop == 1 && STRNCMP( > 1109 > extends_cl->class_class_functions[i]->uf_name, > 1110 "new", 3) == 0) > 1111 ++skipped; > 1112 else > 1113 { > >>> CID 1544700: Control flow issues (DEADCODE) > >>> Execution cannot reach the expression > >>> "extends_cl->class_class_functions" inside this statement: "pf = (loop == > >>> 1) ? extends_...". > 1114 ufunc_T *pf = (loop == 1 > 1115 ? > extends_cl->class_class_functions > 1116 : > extends_cl->class_obj_methods)[i]; > 1117 (*fup)[gap->ga_len + i - skipped] = copy_function(pf); > 1118 > 1119 // If the child class overrides a function from the > parent > > > -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/CAAW7x7kL0tpNpq01-kSiOahp8eSJS6KJdjQV4QfodgWbEL1m5A%40mail.gmail.com.