Mercurial > vim
changeset 5184:c6dd0c545e5c v7.4a.018
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.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 13 Jul 2013 20:58:11 +0200 |
parents | e36ec4bd5697 |
children | d30d1416180e |
files | src/regexp_nfa.c src/ui.c src/version.c |
diffstat | 3 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -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: