0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

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.
This commit is contained in:
Bram Moolenaar
2013-07-13 20:58:11 +02:00
parent 2b79bfdeab
commit 690ae9c858
3 changed files with 6 additions and 3 deletions

View File

@@ -3739,7 +3739,7 @@ match_follows(startstate, depth)
if (depth > 10)
return FALSE;
for (;;)
while (state != NULL)
{
switch (state->c)
{
@@ -3765,7 +3765,7 @@ match_follows(startstate, depth)
case NFA_COMPOSING:
/* skip ahead to next state */
state = state->out1->out;
break;
continue;
case NFA_ANY:
case NFA_IDENT:

View File

@@ -1467,8 +1467,9 @@ clip_gen_owner_exists(cbd)
else
# endif
return clip_x11_owner_exists(cbd);
#endif
#else
return TRUE;
#endif
}
#endif /* FEAT_CLIPBOARD */

View File

@@ -727,6 +727,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
18,
/**/
17,
/**/