Mercurial > vim
diff src/spell.c @ 12674:e769c912fcd9 v8.0.1215
patch 8.0.1215: newer gcc warns for implicit fallthrough
commit https://github.com/vim/vim/commit/2f40d129bf45cd35976e4120336ae6d504f5a5dd
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Oct 24 21:49:36 2017 +0200
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 Oct 2017 22:00:06 +0200 |
parents | 68d7bc045dbe |
children | ac42c4b11dbc |
line wrap: on
line diff
--- 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