mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
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)
This commit is contained in:
12
src/spell.c
12
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
|
||||
|
Reference in New Issue
Block a user