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:
@@ -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:
|
||||
|
3
src/ui.c
3
src/ui.c
@@ -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 */
|
||||
|
@@ -727,6 +727,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
18,
|
||||
/**/
|
||||
17,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user