diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-10-24 21:49:36 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-10-24 21:49:36 +0200 |
commit | 2f40d129bf45cd35976e4120336ae6d504f5a5dd (patch) | |
tree | 28165f91d583148c96dca3f4fe5d0c7e61b2e860 /src/normal.c | |
parent | 4f1982800f0aff28df6875e718a786f6c4b11ad9 (diff) | |
download | vim-git-2f40d129bf45cd35976e4120336ae6d504f5a5dd.tar.gz |
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/normal.c')
-rw-r--r-- | src/normal.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/normal.c b/src/normal.c index fbeffe51e..e781cd70e 100644 --- a/src/normal.c +++ b/src/normal.c @@ -1945,6 +1945,7 @@ do_pending_operator(cmdarg_T *cap, int old_col, int gui_yank) 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 @@ dozet: 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 @@ nv_g_cmd(cmdarg_T *cap) /* "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 @@ nv_g_cmd(cmdarg_T *cap) case 'q': case 'w': oap->cursor_start = curwin->w_cursor; - /*FALLTHROUGH*/ + /* FALLTHROUGH */ case '~': case 'u': case 'U': @@ -9117,7 +9118,7 @@ nv_edit(cmdarg_T *cap) * 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 |