diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-20 06:32:15 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-09-20 06:59:04 -0400 |
commit | 6a329b05484a546b5ca6ed87cf355ad6f6007b8e (patch) | |
tree | 1c3435708dcd4acfdf948741e5939137cae93c55 /src/nvim/regexp.c | |
parent | 47d74bf32f3b95b28a3ef2a7840989eb9bed7480 (diff) | |
download | rneovim-6a329b05484a546b5ca6ed87cf355ad6f6007b8e.tar.gz rneovim-6a329b05484a546b5ca6ed87cf355ad6f6007b8e.tar.bz2 rneovim-6a329b05484a546b5ca6ed87cf355ad6f6007b8e.zip |
vim-patch:8.0.1215: newer gcc warns for implicit fallthrough
Problem: Newer gcc warns for implicit fallthrough.
Solution: Consistently use a FALLTHROUGH comment. (Christian Brabandt)
https://github.com/vim/vim/commit/2f40d129bf45cd35976e4120336ae6d504f5a5dd
Diffstat (limited to 'src/nvim/regexp.c')
-rw-r--r-- | src/nvim/regexp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c index 4f51a8b4cf..292e0ea7a2 100644 --- a/src/nvim/regexp.c +++ b/src/nvim/regexp.c @@ -1806,7 +1806,7 @@ static char_u *regatom(int *flagp) goto collection; /* "\_x" is character class plus newline */ - /*FALLTHROUGH*/ + FALLTHROUGH; /* * Character classes. @@ -5155,7 +5155,7 @@ regrepeat ( case IDENT: case IDENT + ADD_NL: testval = TRUE; - /*FALLTHROUGH*/ + FALLTHROUGH; case SIDENT: case SIDENT + ADD_NL: while (count < maxcount) { @@ -5182,7 +5182,7 @@ regrepeat ( case KWORD: case KWORD + ADD_NL: testval = TRUE; - /*FALLTHROUGH*/ + FALLTHROUGH; case SKWORD: case SKWORD + ADD_NL: while (count < maxcount) { @@ -5211,7 +5211,7 @@ regrepeat ( case FNAME: case FNAME + ADD_NL: testval = TRUE; - /*FALLTHROUGH*/ + FALLTHROUGH; case SFNAME: case SFNAME + ADD_NL: while (count < maxcount) { @@ -5239,7 +5239,7 @@ regrepeat ( case PRINT: case PRINT + ADD_NL: testval = TRUE; - /*FALLTHROUGH*/ + FALLTHROUGH; case SPRINT: case SPRINT + ADD_NL: while (count < maxcount) { @@ -5418,7 +5418,7 @@ do_class: case ANYOF: case ANYOF + ADD_NL: testval = TRUE; - /*FALLTHROUGH*/ + FALLTHROUGH; case ANYBUT: case ANYBUT + ADD_NL: |