# HG changeset patch # User Bram Moolenaar # Date 1373741891 -7200 # Node ID c6dd0c545e5ca25e0b45fc1dbd7d1cb20642830e # Parent e36ec4bd56974f838bca1a8ed7c2c97826491509 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. diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c --- 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: diff --git a/src/ui.c b/src/ui.c --- a/src/ui.c +++ b/src/ui.c @@ -1467,8 +1467,9 @@ clip_gen_owner_exists(cbd) else # endif return clip_x11_owner_exists(cbd); +#else + return TRUE; #endif - return TRUE; } #endif /* FEAT_CLIPBOARD */ diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -728,6 +728,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 18, +/**/ 17, /**/ 16,