summaryrefslogtreecommitdiffstats
path: root/src/edit.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2017-10-24 21:49:36 +0200
committerBram Moolenaar <Bram@vim.org>2017-10-24 21:49:36 +0200
commit2f40d129bf45cd35976e4120336ae6d504f5a5dd (patch)
tree28165f91d583148c96dca3f4fe5d0c7e61b2e860 /src/edit.c
parent4f1982800f0aff28df6875e718a786f6c4b11ad9 (diff)
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/edit.c')
-rw-r--r--src/edit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/edit.c b/src/edit.c
index 5f513068ae..a179620522 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -984,7 +984,7 @@ edit(
case ESC: /* End input mode */
if (echeck_abbr(ESC + ABBR_OFF))
break;
- /*FALLTHROUGH*/
+ /* FALLTHROUGH */
case Ctrl_C: /* End input mode */
#ifdef FEAT_CMDWIN
@@ -5774,13 +5774,16 @@ quote_meta(char_u *dest, char_u *src, int len)
if (ctrl_x_mode == CTRL_X_DICTIONARY
|| ctrl_x_mode == CTRL_X_THESAURUS)
break;
+ /* FALLTHROUGH */
case '~':
if (!p_magic) /* quote these only if magic is set */
break;
+ /* FALLTHROUGH */
case '\\':
if (ctrl_x_mode == CTRL_X_DICTIONARY
|| ctrl_x_mode == CTRL_X_THESAURUS)
break;
+ /* FALLTHROUGH */
case '^': /* currently it's not needed. */
case '$':
m++;