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/spell.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/spell.c')
-rw-r--r-- | src/nvim/spell.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c index 970e50771d..776445cfc1 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -4204,7 +4204,7 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char_u *fword, bool so } PROF_STORE(sp->ts_state) sp->ts_state = STATE_PLAIN; - // FALLTHROUGH + FALLTHROUGH; case STATE_PLAIN: // Go over all possible bytes at this node, add each to tword[] @@ -4386,7 +4386,7 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char_u *fword, bool so break; } - // FALLTHROUGH + FALLTHROUGH; case STATE_INS_PREP: if (sp->ts_flags & TSF_DIDDEL) { @@ -4416,7 +4416,7 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char_u *fword, bool so } break; - // FALLTHROUGH + FALLTHROUGH; case STATE_INS: // Insert one byte. Repeat this for each possible byte at this @@ -4552,7 +4552,7 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char_u *fword, bool so memmove(p + MB_PTR2LEN(p + n), p, n); utf_char2bytes(c, p); - // FALLTHROUGH + FALLTHROUGH; case STATE_SWAP3: // Swap two bytes, skipping one: "123" -> "321". We change @@ -4695,7 +4695,7 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char_u *fword, bool so memmove(p, p + tl, n); utf_char2bytes(c, p + n); - // FALLTHROUGH + FALLTHROUGH; case STATE_REP_INI: // Check if matching with REP items from the .aff file would work. |