To: vim_dev@googlegroups.com Subject: Patch 8.2.5062 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.5062 Problem: Coverity warns for dead code. Solution: Remove the dead code. Files: src/os_unix.c, src/match.c *** ../vim-8.2.5061/src/os_unix.c 2022-06-05 22:05:15.600289401 +0100 --- src/os_unix.c 2022-06-06 10:04:01.731728421 +0100 *************** *** 8422,8428 **** if (ret == 0) { alarm_pending = sigismember(&sigs, SIGALRM); ! ret = ret == 0 ? sigprocmask(SIG_SETMASK, &saved_sigs, NULL) : ret; } if (unlikely(ret != 0 || alarm_pending < 0)) { --- 8422,8428 ---- if (ret == 0) { alarm_pending = sigismember(&sigs, SIGALRM); ! ret = sigprocmask(SIG_SETMASK, &saved_sigs, NULL); } if (unlikely(ret != 0 || alarm_pending < 0)) { *** ../vim-8.2.5061/src/match.c 2022-06-05 16:55:50.694774344 +0100 --- src/match.c 2022-06-06 10:05:11.467690985 +0100 *************** *** 446,459 **** // or none is found in this line. for (;;) { - # ifdef FEAT_RELTIME - // Stop searching after passing the time limit. - if (timed_out) - { - shl->lnum = 0; // no match found in time - break; - } - # endif // Three situations: // 1. No useful previous match: search from start of line. // 2. Not Vi compatible or empty match: continue at next character. --- 446,451 ---- *** ../vim-8.2.5061/src/version.c 2022-06-05 22:05:15.600289401 +0100 --- src/version.c 2022-06-06 10:02:23.275781077 +0100 *************** *** 736,737 **** --- 736,739 ---- { /* Add new patch number below this line */ + /**/ + 5062, /**/ -- There are three kinds of people: Those who can count & those who can't. /// 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 ///