]> granicus.if.org Git - vim/commitdiff
patch 8.2.5062: Coverity warns for dead code v8.2.5062
authorBram Moolenaar <Bram@vim.org>
Mon, 6 Jun 2022 09:07:01 +0000 (10:07 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 6 Jun 2022 09:07:01 +0000 (10:07 +0100)
Problem:    Coverity warns for dead code.
Solution:   Remove the dead code.

src/match.c
src/os_unix.c
src/version.c

index 72276527d34f582d07e7a41c888029f1c7581dd5..c9231876bccc18cf3e9d34f1b0a8ee3661d7ed14 100644 (file)
@@ -446,14 +446,6 @@ next_search_hl(
     // 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.
index b23adb710f69e8e2227d11ea48e849c912b9f96d..72f80c95dc0937fb8ec3944d9c290d9ee231f850 100644 (file)
@@ -8422,7 +8422,7 @@ start_timeout(long msec)
     if (ret == 0)
     {
        alarm_pending = sigismember(&sigs, SIGALRM);
-       ret = ret == 0 ? sigprocmask(SIG_SETMASK, &saved_sigs, NULL) : ret;
+       ret = sigprocmask(SIG_SETMASK, &saved_sigs, NULL);
     }
     if (unlikely(ret != 0 || alarm_pending < 0))
     {
index 074652ba4d5e905c3afaa461cefab3edc8fd9dda..542028606dde51eaee71ebb11785f71f416c0036 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    5062,
 /**/
     5061,
 /**/