summaryrefslogtreecommitdiff
path: root/src/regexp_nfa.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-10-24 21:49:36 +0200
committerBram Moolenaar <Bram@vim.org>2017-10-24 21:49:36 +0200
commit2f40d129bf45cd35976e4120336ae6d504f5a5dd (patch)
tree28165f91d583148c96dca3f4fe5d0c7e61b2e860 /src/regexp_nfa.c
parent4f1982800f0aff28df6875e718a786f6c4b11ad9 (diff)
downloadvim-git-2f40d129bf45cd35976e4120336ae6d504f5a5dd.tar.gz
patch 8.0.1215: newer gcc warns for implicit fallthroughv8.0.1215
Problem: Newer gcc warns for implicit fallthrough. Solution: Consistently use a FALLTHROUGH comment. (Christian Brabandt)
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r--src/regexp_nfa.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index 40d6605f0..86061a3a5 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -1320,7 +1320,7 @@ nfa_regatom(void)
goto collection;
/* "\_x" is character class plus newline */
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
/*
* Character classes.
@@ -4698,6 +4698,7 @@ skip_add:
subs = addstate(l, state->out, subs, pim, off_arg);
break;
}
+ /* FALLTHROUGH */
case NFA_MCLOSE1:
case NFA_MCLOSE2:
case NFA_MCLOSE3: