Skip to content

Commit

Permalink
patch 8.2.5062: Coverity warns for dead code
Browse files Browse the repository at this point in the history
Problem:    Coverity warns for dead code.
Solution:   Remove the dead code.
  • Loading branch information
brammool committed Jun 6, 2022
1 parent 99c48fe commit 1f89abf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
8 changes: 0 additions & 8 deletions src/match.c
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/os_unix.c
Expand Up @@ -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))
{
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -734,6 +734,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
5062,
/**/
5061,
/**/
Expand Down

0 comments on commit 1f89abf

Please sign in to comment.