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)
diff --git a/src/normal.c b/src/normal.c
index fbeffe5..e781cd7 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -1945,6 +1945,7 @@
AppendToRedobuff((char_u *)"!\r"); /* use any last used !cmd */
else
bangredo = TRUE; /* do_bang() will put cmd in redo buffer */
+ /* FALLTHROUGH */
case OP_INDENT:
case OP_COLON:
@@ -5150,7 +5151,7 @@
break;
}
undo = TRUE;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case 'g': /* "zg": add good word to word list */
case 'w': /* "zw": add wrong word to word list */
@@ -8267,7 +8268,7 @@
/* "g'm" and "g`m": jump to mark without setting pcmark */
case '\'':
cap->arg = TRUE;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case '`':
nv_gomark(cap);
break;
@@ -8328,7 +8329,7 @@
case 'q':
case 'w':
oap->cursor_start = curwin->w_cursor;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case '~':
case 'u':
case 'U':
@@ -9117,7 +9118,7 @@
* the first column, then it inserts. */
if (curwin->w_cursor.col == 0)
break;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case 'a': /* "a"ppend is like "i"nsert on the next character. */
#ifdef FEAT_VIRTUALEDIT