diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-10-24 21:49:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-10-24 21:49:36 +0200 |
commit | 2f40d129bf45cd35976e4120336ae6d504f5a5dd (patch) | |
tree | 28165f91d583148c96dca3f4fe5d0c7e61b2e860 /src/spell.c | |
parent | 4f1982800f0aff28df6875e718a786f6c4b11ad9 (diff) | |
download | vim-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/spell.c')
-rw-r--r-- | src/spell.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/spell.c b/src/spell.c index eb1b9fb6c..cdcf82295 100644 --- a/src/spell.c +++ b/src/spell.c @@ -5019,7 +5019,7 @@ suggest_trie_walk( } PROF_STORE(sp->ts_state) sp->ts_state = STATE_PLAIN; - /*FALLTHROUGH*/ + /* FALLTHROUGH */ case STATE_PLAIN: /* @@ -5243,7 +5243,7 @@ suggest_trie_walk( } break; } - /*FALLTHROUGH*/ + /* FALLTHROUGH */ case STATE_INS_PREP: if (sp->ts_flags & TSF_DIDDEL) @@ -5277,7 +5277,7 @@ suggest_trie_walk( } break; - /*FALLTHROUGH*/ + /* FALLTHROUGH */ case STATE_INS: /* Insert one byte. Repeat this for each possible byte at this @@ -5464,7 +5464,7 @@ suggest_trie_walk( *p = p[1]; p[1] = c; } - /*FALLTHROUGH*/ + /* FALLTHROUGH */ case STATE_SWAP3: /* Swap two bytes, skipping one: "123" -> "321". We change @@ -5703,7 +5703,7 @@ suggest_trie_walk( p[1] = p[2]; p[2] = c; } - /*FALLTHROUGH*/ + /* FALLTHROUGH */ case STATE_REP_INI: /* Check if matching with REP items from the .aff file would work. @@ -5736,7 +5736,7 @@ suggest_trie_walk( PROF_STORE(sp->ts_state) sp->ts_state = STATE_REP; - /*FALLTHROUGH*/ + /* FALLTHROUGH */ case STATE_REP: /* Try matching with REP items from the .aff file. For each match |