0
0
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:
Bram Moolenaar
2017-10-24 21:49:36 +02:00
parent 4f1982800f
commit 2f40d129bf
14 changed files with 39 additions and 29 deletions

View File

@@ -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