aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-20 06:32:15 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-09-20 06:59:04 -0400
commit6a329b05484a546b5ca6ed87cf355ad6f6007b8e (patch)
tree1c3435708dcd4acfdf948741e5939137cae93c55 /src/nvim/buffer.c
parent47d74bf32f3b95b28a3ef2a7840989eb9bed7480 (diff)
downloadrneovim-6a329b05484a546b5ca6ed87cf355ad6f6007b8e.tar.gz
rneovim-6a329b05484a546b5ca6ed87cf355ad6f6007b8e.tar.bz2
rneovim-6a329b05484a546b5ca6ed87cf355ad6f6007b8e.zip
vim-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) https://github.com/vim/vim/commit/2f40d129bf45cd35976e4120336ae6d504f5a5dd
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r--src/nvim/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index a0ac8d3201..6735ae696f 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -3723,7 +3723,7 @@ int build_stl_str_hl(
case STL_OFFSET_X:
base = kNumBaseHexadecimal;
- // fallthrough
+ FALLTHROUGH;
case STL_OFFSET:
{
long l = ml_find_line_or_offset(wp->w_buffer, wp->w_cursor.lnum, NULL);
@@ -3734,7 +3734,7 @@ int build_stl_str_hl(
}
case STL_BYTEVAL_X:
base = kNumBaseHexadecimal;
- // fallthrough
+ FALLTHROUGH;
case STL_BYTEVAL:
num = byteval;
if (num == NL)