Skip to content

Commit 4737c40

Browse files
committed
updated for version 7.4a.018
Problem: Compiler warning for code unreachable. (Charles Campbell) Solution: Use "while" instead of endless loop. Change break to continue.
1 parent 104c0a5 commit 4737c40

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/regexp_nfa.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3739,7 +3739,7 @@ match_follows(startstate, depth)
37393739
if (depth > 10)
37403740
return FALSE;
37413741

3742-
for (;;)
3742+
while (state != NULL)
37433743
{
37443744
switch (state->c)
37453745
{
@@ -3765,7 +3765,7 @@ match_follows(startstate, depth)
37653765
case NFA_COMPOSING:
37663766
/* skip ahead to next state */
37673767
state = state->out1->out;
3768-
break;
3768+
continue;
37693769

37703770
case NFA_ANY:
37713771
case NFA_IDENT:

src/ui.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1467,8 +1467,9 @@ clip_gen_owner_exists(cbd)
14671467
else
14681468
# endif
14691469
return clip_x11_owner_exists(cbd);
1470-
#endif
1470+
#else
14711471
return TRUE;
1472+
#endif
14721473
}
14731474

14741475
#endif /* FEAT_CLIPBOARD */

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -727,6 +727,8 @@ static char *(features[]) =
727727

728728
static int included_patches[] =
729729
{ /* Add new patch number below this line */
730+
/**/
731+
18,
730732
/**/
731733
17,
732734
/**/

0 commit comments

Comments
 (0)