From 6a329b05484a546b5ca6ed87cf355ad6f6007b8e Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Thu, 20 Sep 2018 06:32:15 -0400 Subject: 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 --- src/nvim/buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/nvim/buffer.c') 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) -- cgit