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 -- [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/20220606090923.ED0121C292C%40moolenaar.net.

Raspunde prin e-mail lui